What is the difference between HAVING and WHERE in an SQL SELECT statement?
HAVING
WHERE
SELECT
HAVING specifies a search condition for a group or an aggregate function used in SELECT statement.
Source