
16/02/2010, 11:24
|
Colaborador | | Fecha de Ingreso: marzo-2008 Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 10 meses Puntos: 300 | |
Respuesta: Consulta traer datos ultima fecha SELECT t1.documento, t1.direccion, t1.fecha FROM (SELECT cl.documento documento, dir.direccion direccion, dir.fecha_creacion fecha FROM clientes cl INNER JOIN direcciones dir ON cl.id_cliente = dir.id_cliente ORDER BY dir.fecha_creacion DESC)t1 GROUP BY t1.documento |