Use SQL HAVING to filter summary results from a GROUP BY. It specifies the search condition for the group or aggregate. SQL HAVING is only used with SELECT. It is mostly used when a GROUP BY is present, if one isn’t there is an implicit single aggregated group.
