Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/09/2010, 22:36
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: Ayudita discriminar resultados

Código MySQL:
Ver original
  1. SELECT t1.id, t1.ref, t1.texto, t1.fecha FROM
  2.  (SELECT id, ref, texto, fecha FROM tabla ORDER BY fecha DESC)t1 GROUP BY t1.ref