
SQL aggregate functions lesson for IB Diploma Computer Science (first assessment 2027), with editable PowerPoint slides, a student worksheet and full answers. SQL aggregate functions such as COUNT, SUM, AVG, MIN and MAX summarise many rows into one value, often used with GROUP BY.
Written for the 2027 IB Computer Science guide, unit A3 Databases (HL only). Everything is editable, so you can adapt it to your class.
What’s included- PowerPoint lesson (11 slides) with speaker notes on every slide
- Student worksheet (Word), ready to print or edit
- Answer sheet (Word) with model answers for every question
By the end of the lesson students can:
- Use AVG, COUNT, MAX, MIN and SUM in SELECT queries
- Group rows with GROUP BY, and filter groups with HAVING
- Interpret the results to answer real questions
Worksheet sections: A. The library tables; B. Predict; C. Write the query; D. Interpret; E. Challenge
Every lesson includes- Learning goals and a starter question
- Clear explanations with worked examples (Python where code is needed)
- A quick check and a “your turn” task linked to the worksheet
- An exit ticket
- PowerPoint (.pptx) and Word (.docx), fully editable
- Works in PowerPoint and Google Slides
- Calm pastel design, consistent across the whole IB course
These are independent resources written for the IB Diploma Programme Computer Science guide (first assessment 2027). They are not produced or endorsed by the International Baccalaureate Organization.
More lessons in this series- Previous lesson: Updating data with SQL – IB Computer Science lesson
- Next lesson: Database views – IB Computer Science lesson
- Save with the bundle: Databases – IB Computer Science (18 lessons)
Last updated: November 2026.
Something went wrong, please try again later.
This resource hasn't been reviewed yet
To ensure quality for our reviews, only customers who have purchased this resource can review it
Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.