Analise os comandos SQL a seguir, que produzem os resultados R1, R2 e R3, respectivamente.
I.
select distinct x.* from x, y
where x.a <> y.a
II.
select distinct x.* from x
where x.a not in (select a from y)
III.
select distinct x.* from x
where not exists
(select * from y where y.a=x.a)
Sabendo-se que nenhuma das instâncias das tabelas “x” e “y” é vazia, é correto concluir que:
I.
select distinct x.* from x, y
where x.a <> y.a
II.
select distinct x.* from x
where x.a not in (select a from y)
III.
select distinct x.* from x
where not exists
(select * from y where y.a=x.a)
Sabendo-se que nenhuma das instâncias das tabelas “x” e “y” é vazia, é correto concluir que:
- A)R1 e R2 são iguais entre si e diferentes de R3;
- B)R1 e R3 são iguais entre si e diferentes de R2;
- C)R2 e R3 são iguais entre si e diferentes de R1;
- D)R1, R2 e R3 são todos iguais entre si;
- E)R1, R2 e R3 são todos diferentes entre si.