Ver Mensaje Individual
  #2  
Antiguo 15-06-2007
Avatar de gluglu
[gluglu] gluglu is offline
Miembro Premium
 
Registrado: sep 2004
Ubicación: Málaga - España
Posts: 1.455
Reputación: 23
gluglu Va por buen camino
Código SQL [-]
Select paciente_campo1, paciente_campo2,
cita.campo1, cita.campo2
from paciente
left join cita
  on paciente.paciente_id = cita.cita_pacienteid
where paciente_id in
 (select distinct cita_pacienteid 
  from cita 
  where cita_servicioid = 423 and cita_status = 'T')

ClNaU2
__________________
Piensa siempre en positivo !
Responder Con Cita