SQL – Use HAVING to filter GROUP BY

WHERE filters individual rows. HAVING filters aggregated rows. When you use GROUP BY, you are grouping rows together into aggregated rows. How do you filter the aggregated rows? You use the HAVING clause. Example of using HAVING Let’s say we want to see all NFL divisions where all teams have played in the Super Bowl … Read more SQL – Use HAVING to filter GROUP BY