Select Distinct J#
from SPJ, SPJX
where not exists (select P#
from SPJ SPJY
where SPJY.S# = ‘s1’#
and not exists (select *
from SPJ SPJZ
where SPJZ.P# = SPJY.P#
and SPJ.J# = SPJX.J#));
Algegra: SPJ [J#, P#] divideby (spj where S# = ‘S1’) [P#]
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario