Ver Mensaje Individual
  #5  
Antiguo 13-04-2015
Avatar de pacopenin
pacopenin pacopenin is offline
Miembro
 
Registrado: sep 2010
Ubicación: Asturias
Posts: 382
Reputación: 15
pacopenin Va por buen camino
Si no he entendido mal, me parece que lo que apunta AgustinOrtu serviría. Yo incluiría dichas fechas en el resultado de la select

(select first 1 of.fecha_audita from oftalmologia of where of.idpaciente=p.idpaciente order by of.fecha_audita DESC)

y me construría una vista para poder manejarlo comodamente.
__________________
http://www.gestionportable.com
Responder Con Cita