Banco de dadosSql
- (NC-UFPR 2015)
Assinale a alternativa cujo comando está com a sintaxe correta.
A) select chavevendedor, sum(valorvendas) from vendas where (chavefilial=1) and (sum(valorvendas)>=1000000) order by sum(valorvendas)
B) select chavevendedor, sum(valorvendas) from vendas where chavefilial=1 having sum(valorvendas)>=1000000 order by sum(valorvendas)
C) select chavevendedor, sum(valorvendas) from vendas group by chavevendedor having sum(valorvendas)>=1000000 where chavefilial=1 order by sum(valorvendas)
D) select chavevendedor, sum(valorvendas) from vendas where chavefilial=1 group by chavevendedor having sum(valorvendas)>=1000000 order by sum(valorvendas)
E) select chavevendedor, sum(valorvendas) from vendas where chavefilial=1 having sum(valorvendas)>=1000000 group by chavevendedor order by sum(valorvendas)
Próximo:
EXERCÍCIOS - Exercício 186
Vamos para o Anterior: Exercício 184
Tente Este: Exercício 235
Primeiro: Exercício 1
VOLTAR ao índice: Banco de dados