
06/04/2010, 15:15
|
Colaborador | | Fecha de Ingreso: marzo-2008 Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 10 meses 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 |