Aqui tengo una relation de 1:1 Organization - Profile. Pero cuando hago
lo siguente hay doblas que quiero borrar. Son errores.
Select org.name, org.relationnumber, prof.id
from organizations org left join profiles prof
on prof.id_organization = org.id
where prof.id is not null order by org.name
Puedo leer todo el resultato, pero no hay una manera como puedo ver
solo las reglas doblas? Algo como:
Select org.name, org.relationnumber, prof.id
from organizations org left join profiles prof
on prof.id_organization = org.id
where prof.id is not null and having count(*) > 1
quizas?
Leer las respuestas