Introduction
HAVING lets you filter groups of data after you group them, so you only see groups that meet certain conditions.
You want to find customers who bought more than 5 items in total.
You want to list products with total sales above a certain amount.
You want to see which cities have more than 10 stores.
You want to filter groups after counting or summing values.