Ver Mensaje Individual
  #4  
Antiguo 30-01-2008
keyboy keyboy is offline
Miembro
 
Registrado: oct 2004
Posts: 367
Reputación: 20
keyboy Va por buen camino
Yo voto por esta:

Código SQL [-]
select cita_pacienteid, count(cita_pacienteid)
from cita
where cita_status = 'I'
group by cita_pacienteid
having count(cita_pacienteid) = 1

Bye
Responder Con Cita