Back to course overview
SQL Fundamentals
Summarising Data
Summarise tables with COUNT, SUM and AVG, aggregate by group with GROUP BY and HAVING, and handle missing values with NULL checks and CASE.
3 lessons ยท 1h 20m
- 29mCOUNT, SUM, AVGReading
Summarise a whole table into one row with COUNT, SUM, AVG, MIN and MAX, and see how NULLs affect the results.
- 27mGROUP BY and HAVINGReading
Aggregate rows per group with GROUP BY, and keep only the groups you want with HAVING.
- 24mNULLs and CASEReading
Handle missing values with IS NULL and COALESCE, and turn raw values into categories with CASE.