A HAVING clause in SQL specifies that an SQL SELECT statement must only return rows where aggregate values meet the specified conditions.[1]: 125–127
HAVING
SELECT
pgs23