Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/04/2010, 15:15
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: Order dentro de un GROUP BY

Prueba esta. Hay alguna otra para hacer lo mismo.
SELECT t1.nombre, t1.detalle, t1.fecha t1(SELECT afi.nombre nombre, gs.detalle detalle, gs.fecha_gestion fecha FROM afiliados afi INNER JOIN gestiones gs USING(id_afiliado) ORDER BY afi.nombre, gs.fecha_gestion DESC)t1 GROUP BY t1.nombre