Like a WHERE clause specification in relation to a SELECT clause, the HAVING clause specifies a groupingCondition for a GROUP BY clause. Whereas a WHERE clause cannot include the aggregate function, the HAVING clause can include the aggregate function.
Syntax:
having groupingCondition