Database management systems notes
Aggregation & Grouping
Turning many rows into one number, per group, without getting the count wrong. Every section is a drawn page beside a clear written explanation, about 19 minutes in all.
- Chapter 10 of 34
- About 19 minutes
- 8 sections
Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.

In this chapter
- The five aggregate functions
- The three COUNTs
- GROUP BY: one result row per group
- HAVING: filtering groups
- Grouping by several columns
- DISTINCT and GROUP BY
- Aggregating across joined tables
- Checking an aggregate before you believe it
Next chapters
Read the whole chapter
Sign in and the chapter opens with every drawn page, and all 35 database management systems chapters beside it.
DSA comes with the all labs plan and every ChaiCode batch.