GROUP BY vs HAVING Workbook: 3 Exam Problems Solved (SQL Lesson 2)
On Sale
$2.00
$2.00
WHERE filters rows. HAVING filters groups. Exams test whether you know which is which, and whether you grouped by the right key. This workbook walks through both, including the mistake that merges two different students into one.
The 3 problems
- Easy: total enrollments per course across all terms, highest first.
- Medium: which courses have more than 3 enrollments in Fall 2026?
- Hard: every student taking 2 or more sections in Fall 2026, with the count.
Details: 19 pages and 8 tested queries.