Aggregation and grouping
COUNT, SUM, AVG, MIN, MAX, GROUP BY, and the crucial difference between filtering rows with WHERE and filtering groups with HAVING.
8 min readUpdated 2026-09-03dbmssqlaggregationgroup-by
COUNT, SUM, AVG, MIN, MAX, GROUP BY, and the crucial difference between filtering rows with WHERE and filtering groups with HAVING.