Pular para o conteúdo principal

Questão de Banco de Dados — SQL — FGV 2014

Banco de DadosSQL
Código
fg007528
Banca
FGV
Órgão
Câmara Municipal do Recife - PE
Ano
2014
Nível
Médio
Cargo
Câmara Municipal do Recife-PE - Programador
O comando SQL que produz valores diferentes de todos os demais comandos é:
  1. Aselect *from t1, t2 where t1.a=t2.a
  2. Bselect t1.*, t2.*from t1 inner join t2 on t1.a=t2.a.a
  3. Cselect t1.*, t2.*from t1, t2where t1.a in t2.a and t2.a in t1.a
  4. Dselect t1.*, t2.*from t1, (select * from t2) t2where t2.a=t1.a
  5. Eselect *from (select * from t1) x,(select * from t2) ywhere x.a=y.a
Revelar gabarito e comentário

GabaritoC — select t1.*, t2.* from t1, t2 where t1.a in t2.a and t2.a in t1.a

Link permanente: /questoes/fg007528