Which SQL clause is used to filter grouped records?

Explanation:
The HAVING clause is used to filter grouped records after GROUP BY. WHERE filters rows before grouping, while HAVING filters groups based on aggregate conditions such as COUNT or SUM.

Latest Blogs