Filtering Groups with HAVING
HAVING filters groups (like WHERE filters rows).
Find departments with more than 3 employees:
WHERE vs HAVING:
WHEREfilters BEFORE groupingHAVINGfilters AFTER grouping
HAVING works with aggregate functions.
Check your understanding
Find departments with more than 2 employees.
Examples run on the employees sample database. Open any of them in the playground to experiment.