Pattern 04· SQL & Querying

Aggregation & GROUP BY

COUNT variants, SUM over empty/all-NULL, WHERE vs HAVING, non-aggregated columns, NULL groups.

The traps in this pattern

Ready to practise?

Run graded Aggregation & GROUP BY problems in your browser — 8 traps covered here.

Practise these problems →