- SQLOperadores em SQLEXISTS e NOT EXISTS: Teste de Existência de Linhas
- SQLOperadores em SQLIN, NOT IN, ANY, ALL e SOME: Predicados de Conjunto
Considere os seguintes comandos SQL:
I. select * from R where a not in (select a from S)
II. select * from R where not exists (select * from S where R.a=S.a)
III. select * from R where a <> all (select a from S)
IV. select * from R where count(select * from S where R.a=S.a)=0
Pode-se concluir que produzem o mesmo resultado somente os comandos:
I. select * from R where a not in (select a from S)
II. select * from R where not exists (select * from S where R.a=S.a)
III. select * from R where a <> all (select a from S)
IV. select * from R where count(select * from S where R.a=S.a)=0
Pode-se concluir que produzem o mesmo resultado somente os comandos: