Procura

Banco de dadosSql


EXERCÍCIOS - Exercício 185

  • (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






Cadastre-se e ganhe o primeiro capítulo do livro.
+
((ts_substr_ig=0.00ms))((ts_substr_id=4.80ms))((ts_substr_m2=0.00ms))((ts_substr_p2=0.83ms))((ts_substr_c=5.89ms))((ts_substr_im=1.01ms))
((total= 13ms))