Tema: Distinct
Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/03/2007, 15:39
Avatar de TolerantX
TolerantX
 
Fecha de Ingreso: marzo-2006
Ubicación: Guadalajara, México.
Mensajes: 408
Antigüedad: 18 años, 1 mes
Puntos: 10
Re: Distinct

Cita:
Iniciado por javi_bus Ver Mensaje
Código:
SELECT {loquesea} FROM tabla1 INNER JOIN tabla2 USING(id_comun) 
GROUP BY tabla1.id_comun HAVING MAX(tabla2.fecha_comentario)
Gracias por tu respuesta, entiendo la idea, solo que me manda mensajes de de error (sintaxis) igual como dices el MAX no va ahí, seguiré investigando.
__________________
TolerantX
http://tolerantx.com
Linux User #385226