- Esecutori
-
Impara
Impara Python Esempi eseguibili, NumPy, pandas e altro Impara l'IA / Machine LearningReti neurali, ML e LLM da zero Impara C e C++ Puntatori, memoria, STL e C++ moderno Impara C#Fondamenti, OOP, LINQ, async ed esercizi .NET Impara MatplotlibGrafici a linee, barre, dispersione e torta con visualizzatori Impara RustOwnership, trait, gestione degli errori e thread Impara GoSlice, interfacce, goroutine e canali Algoritmi Python Ricerca, ordinamento, ricorsione e visualizzazioni O(n) Algoritmi C e C++ Confronta le implementazioni in C e C++ Programmazione per bambini Impara a programmare giocando!
- QuizNuovo
- SfideNuovo
- Per docentiNuovo
- Aggiornamenti
- Offrimi un caffè
Quiz di SQL: GROUP BY
This SQL quiz checks how GROUP BY turns rows into one result row per group. You will predict grouped totals, group by several columns, see how WHERE changes groups and learn which columns are allowed in the SELECT list.
Domanda di esempio
Domanda 1 di 10What does this query return?
CREATE TABLE sales (region TEXT, rep TEXT, amount INTEGER);
INSERT INTO sales VALUES ('North', 'Ana', 100), ('South', 'Ben', 200), ('North', 'Cy', 50), ('South', 'Ana', 70), ('East', 'Dee', 30);
SELECT region, SUM(amount) FROM sales GROUP BY region ORDER BY region;
Mostra la risposta
A. East|30
North|150
South|270 GROUP BY region makes one group per region and SUM(amount) is computed inside each group: North 100 + 50, South 200 + 70, East 30.
Cosa copre questo quiz
- One result row per group with
GROUP BY - Aggregates per group like
SUM,COUNTandAVG - Grouping by more than one column
WHEREfilters rows before they are grouped- Which columns can appear in
SELECTnext toGROUP BY
Domande frequenti
Serve un account?
No. Chiunque può giocare. Accedi per salvare XP, serie, badge e cronologia.
Posso rifarlo?
Sì. Il tuo miglior punteggio resta salvato, e domande e risposte vengono mescolate ogni volta.