![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/08/2009, 10:05
|
![Avatar de Andres95](http://static.forosdelweb.com/customavatars/avatar83321_1.gif) | Colaborador | | Fecha de Ingreso: diciembre-2004
Mensajes: 1.802
Antigüedad: 20 años, 2 meses Puntos: 38 | |
Respuesta: Ayuda FECHAS
Código:
SELECT CLIENTES.*, MC.FECHA_CITA
FROM CLIENTES CL
LEFT OUTER JOIN
(
SELECT Cliente_Id, MAX(FECHA_CITA) FECHA_CITA
FROM TBL_CITAS
) MC
ON CL.Cliente_Id = MS.Cliente_Id
![de acuerdo](http://static.forosdelweb.com/fdwtheme/images/smilies/dedosarriba.png) Saludos!
__________________ La sencillez y naturalidad son el supremo y último fin de la cultura...
--
MCTS : SQL Server 2008, .NET Framework 3.5, ASP.NET Applications. |