Tomando como referência as tabelas T1, T2 e T3, descritas anteriormente, o comando SQL select t1.* from T1 where not exists (select * from T2, T3 w...
Tomando como referência as tabelas T1, T2 e T3, descritas anteriormente, o comando SQL select t1.* from T1 where not exists (select * from T2, T3 where t1.A = t3.A and t2.C = t3.C and t3.E is null) produz como resultado somente a(s) linha(s): a ) 1, 3 b ) 1, 3 / 4, 2 c ) 4, 2 d ) 1, 3 / 2, 2 / 4, 2 e ) 2, 2 / 4, 2
a) 1, 3 b) 1, 3 / 4, 2 c) 4, 2 d) 1, 3 / 2, 2 / 4, 2 e) 2, 2 / 4, 2
O comando SQL select t1.* from T1 where not exists (select * from T2, T3 where t1.A = t3.A and t2.C = t3.C and t3.E is null) produz como resultado somente a(s) linha(s):
d) 1, 3 / 2, 2 / 4, 2
0
0
Faça como milhares de estudantes: teste grátis o Passei Direto
Compartilhar