QuestLab Plataforma Inteligente de Questões
Questão pública

Questão de Informática

FCC - TRF 3a - Técnico Judiciário Informática - 2019 • FCC • 2019

Em uma instrução SQL, a cláusula GROUP BY, se utilizada juntamente com funções de grupo, deve estar em uma posição específica como
A
SELECT coluna1 [, coluna2, ... ] . função_de_grupo, [ função_de_grupo, ...] FROM tabela ORDER BY coluna2 GROUP BY coluna4 [, coluna5, ...] HAVING coluna5 > 10 WHERE condição;
B
SELECT coluna1 [, coluna2, ... ] . função_de_grupo, [ função_de_grupo, ...] FROM tabela WHERE condição ORDER BY coluna2 GROUP BY coluna4 [, coluna5, ...] HAVING coluna5 > 10;
C
SELECT coluna1 [, coluna2, ... ] . função_de_grupo, [ função_de_grupo, ...] FROM tabela WHERE condição GROUP BY coluna4 [, coluna5, ...] HAVING coluna5 > 10 ORDER BY coluna2;
D
SELECT coluna1 [, coluna2, ... ] . função_de_grupo, [ função_de_grupo, ...] FROM tabela HAVING coluna5 > 10 ORDER B Y coluna2 WHERE condição GROUP BY coluna4 [, coluna5, ...] ;
E
SELECT coluna1 [, coluna2, ... ] . função_de_grupo, [ função_de_grupo, ...] FROM tabela HAVING coluna5 > 10 WHERE condição ORDER BY coluna2 GROUP BY coluna4 [, coluna5, ...];
Quer responder esta questão e acompanhar seu desempenho?

Entre na QuestLab para responder, acessar a AURA, estatísticas, cadernos, anotações e outros recursos da plataforma.