Pular para o conteúdo principal

Questão de Banco de Dados — SQL — NCE-UFRJ 2009

Banco de DadosSQL
Código
qg809141
Banca
NCE-UFRJ
Órgão
UFRJ
Ano
2009
Nível
Superior
Cargo
NCE - - Analista - Tecnologia da Informação
Uma consulta SQL para apresentar o nome do professor da primeira série, turno da tarde, seria:
  1. Aselect proffrom alunowhere turno = ‘T’ and serie = 1;
  2. Bselect professor.nomefrom professor, alunowhere turno = ‘T’ and serie = 1 and aluno.prof = professor.registro;
  3. Cselect nomefrom professorwhere aluno.turno = ‘T’ and aluno.serie = 1;
  4. Dselect nomefrom professor, alunowhere turno = ‘T’ and serie = 1 and aluno.prof = professor.registro;
  5. Eselect nomefrom professor, aluno where turno = ‘T’ and serie = 1 and aluno.prof = professor.registrogroup by registro;
Revelar gabarito e comentário

GabaritoB — select professor.nome from professor, aluno where turno = ‘T’ and serie = 1 and aluno.prof = professor.registro;

Link permanente: /questoes/qg809141