Pular para o conteúdo principal

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

Banco de DadosSQL
Código
fg028206
Banca
FGV
Órgão
MPE-BA
Ano
2017
Nível
Superior
Cargo
Analista Técnico - Tecnologia
Considerando as tabelas R e S apresentadas anteriormente, o resultadoImagem associada para resolução da questãoseria obtido pela execução do comando SQL:
  1. Aselect * from Rwhere not exists (select * FROM S where a=c)
  2. Bselect * from Rwhere not exists (select * FROM S where a=d)
  3. Cselect * from Swhere not exists (select * FROM R where a=c)
  4. Dselect * from Swhere not exists (select * FROM R where a=d)
  5. Eselect * from Rwhere exists (select * FROM S where b=d)
Revelar gabarito e comentário

GabaritoA — select * from R where not exists (select * FROM S where a=c)

Link permanente: /questoes/fg028206