Group rows, then filter the groups
Follow WHERE, GROUP BY, aggregates and HAVING as a query turns rows into one result per key. Querying · Databases.
A report needs one line per segment, but a row filter and a group filter answer different questions. Trace the boundary before a count quietly changes.
What you will learn
- Trace rows into groups and aggregate values
- Separate COUNT(*) from COUNT(column)
- Choose WHERE, HAVING and ORDER BY for a report
Lesson outline
- From rows to groups
- Two meanings of count
- Filtering completed groups
- Sorting a grouped result
16 minutes · 2 scenes · 0 predict checks · 12 quiz questions
The full lesson is available with Premium.