Module 3: SQL Essentials

3.3 Aggregates and GROUP BY

4:29 video · 5 question quiz · download

Video coming soon

This lesson video is being published. The notes, download and quiz below are ready now.

Lesson notes

Summarise thousands of rows with SQL. Use COUNT, SUM, AVG, MIN and MAX, group results with GROUP BY, and filter groups with HAVING, using the course sales data.

In this lesson

  1. 0:18Aggregate functions
  2. 0:43GROUP BY
  3. 1:14The GROUP BY rule
  4. 1:38Grouping by year
  5. 2:10WHERE and HAVING
  6. 2:34Worked example
  7. 3:06Good habits
  8. 3:52Your turn
  9. 4:11Download and next lesson