PostgreSQL documentation
The official reference for the tools used in this lesson.
Lesson 1.2
Aggregation collapses rows into summaries. WHERE filters before grouping and HAVING after — mixing them up is the classic bug.
Aggregation collapses rows into summaries. WHERE filters before grouping and HAVING after — mixing them up is the classic bug.