Questão de Banco de Dados — Consultas e Comandos em SQL — IADES 2017
Banco de DadosConsultas e Comandos em SQL
- Código
- qg947216
- Banca
- IADES
- Órgão
- HEMOCENTRO DF
- Ano
- 2017
- Cargo
- Ana ( )
Considere as tabelas aluno (id INT, nome CHAR, curso INT) e curso (id INT, nome CHAR), apresentadas a seguir. Após a execução de uma consulta Structured Query Language (SQL), produziu-se exatamente o seguinte resultado: 4 rows in set (0.00 sec.) Qual dos comandos SQL a seguir foi utilizado?



- ASELECT a.nome, c.nome FROM aluno a RIGHT JOIN curso c ON a.curso = c.id;
- BSELECT a.nome, c.nome FROM aluno a LEFT JOIN curso c ON a.curso = c.id UNION SELECT a.nome, c.nome FROM aluno a RIGHT JOIN curso c ON a.curso = c.id;
- CSELECT a.nome, c.nome FROM aluno a LEFT JOIN curso c ON a.curso = c.id;
- DSELECT a.nome, c.nome FROM aluno a INNER JOIN curso c ON a.curso = c.id;
- ESELECT a.nome, c.nome FROM aluno a RIGHT JOIN curso c ON a.curso = c.id UNION SELECT a.nome, c.nome FROM aluno a LEFT JOIN curso c ON a.curso = c.id;