The SQL GROUP BY clause groups rows that share the same values.
The SQL HAVING clause filters aggregated results after GROUP BY.