Código SQL [-]Delete from estudios A where exists (select B.id_paciente from estudios B where b.id_paciente = a.id_paciente)
Delete from estudios A where exists (select B.id_paciente from estudios B where b.id_paciente = a.id_paciente)