Ver Mensaje Individual
  #2  
Antiguo 10-07-2007
Avatar de PepeLolo
PepeLolo PepeLolo is offline
Miembro
 
Registrado: jun 2003
Ubicación: Fuenlabrada - Madrid - Espagna
Posts: 265
Reputación: 21
PepeLolo Va por buen camino
hola, la SQL se reduce a:
Código SQL [-]
Delete from estudios A where exists (select B.id_paciente from estudios B where b.id_paciente = a.id_paciente)

hasta lugo.
__________________
PepeLolo
El hombre el único virus que mide más de unas cuantas micras
Responder Con Cita