Código SQL [-] Select * from direccion d where d.id_categoria is null or not exists (select 1 from categoria c where c.id_categoria = d.id_categoria);
Select * from direccion d where d.id_categoria is null or not exists (select 1 from categoria c where c.id_categoria = d.id_categoria);