Questão de Banco de Dados — SQL — NC-UFPR 2015
Banco de DadosSQL
- Código
- qq144823
- Banca
- NC-UFPR
- Órgão
- ITAIPU BINACIONAL
- Ano
- 2015
- Nível
- Superior
- Cargo
- Computação ou Informática - Sistemas
Assinale a alternativa cujo comando está com a sintaxe correta.
- Aselect chavevendedor, sum(valorvendas) from vendas where (chavefilial=1) and (sum(valorvendas)>=1000000) order by sum(valorvendas)
- Bselect chavevendedor, sum(valorvendas) from vendas where chavefilial=1 having sum(valorvendas)>=1000000 order by sum(valorvendas)
- Cselect chavevendedor, sum(valorvendas) from vendas group by chavevendedor having sum(valorvendas)>=1000000 where chavefilial=1 order by sum(valorvendas)
- Dselect chavevendedor, sum(valorvendas) from vendas where chavefilial=1 group by chavevendedor having sum(valorvendas)>=1000000 order by sum(valorvendas)
- Eselect chavevendedor, sum(valorvendas) from vendas where chavefilial=1 having sum(valorvendas)>=1000000 group by chavevendedor order by sum(valorvendas)