Pular para o conteúdo principal

Questão de Banco de Dados — Modelo relacional — NUCEPE 2025

Banco de DadosModelo relacional
Código
qg578732
Banca
NUCEPE
Órgão
SEDUC-PI
Ano
2025
Nível
Superior
Cargo
Professor para o Curso Técnico em Desenvolvimento de Sistemas
Qual o comando SQL que retorna o nome do aluno, status e a quantidade de registros em cada status.
  1. ASELECT a.nome, m.status, COUNT (*) quantFROM aluno a, matricula mWHERE a.codaluno = m.codalunoGROUP BY a.nome.
  2. BSELECT a.nome, m.status, COUNT(*) quantFROM aluno a, matricula mGROUP BY a.nome, m.status.
  3. CSELECT a.nome, m.status, COUNT (*) quantFROM aluno a, matricula mWHERE a.codaluno = m.codaluno.
  4. DSELECT a.nome, m.status, COUNT (*) quantFROM aluno a, matricula mWHERE a.codaluno = m.codalunoGROUP BY a.nome, m.status.
  5. ESELECT a.nome, m.status, m.quantFROM aluno a, matricula mWHERE a.codaluno = m.codalunoGROUP BY a.nome, m.status.
Revelar gabarito e comentário

GabaritoD — SELECT a.nome, m.status, COUNT (*) quant FROM aluno a, matricula m WHERE a.codaluno = m.codaluno GROUP BY a.nome, m.status.

Link permanente: /questoes/qg578732