SQL Foundations · Lesson 4 of 8 · 12 min

Counting and summarising

Turn thousands of rows into a few useful numbers with COUNT, SUM, AVG and GROUP BY.

Aggregate functions take many rows and return one value: COUNT, SUM, AVG, MIN and MAX.

One number per group

← Previous: Filtering and sorting