Which is the clause used to restrict groups?
-
HAVING
-
WHERE
-
Order By
-
Group by
A
Correct answer
Explanation
HAVING is used to filter groups after aggregation, similar to how WHERE filters individual rows before aggregation. You cannot use WHERE with aggregate functions - HAVING is the correct clause for restricting groups based on aggregate conditions.