Which clause is specifically used to place a condition on groups created by…
2026
Which clause is specifically used to place a condition on groups created by the GROUP BY clause, rather than individual rows?
- A.
WHERE
- B.
HAVING
- C.
WHEN
- D.
LIMIT
Attempted by 582 students.
Show answer & explanation
Correct answer: B
The HAVING clause is specifically used to place a condition on groups created by the GROUP BY clause. While the WHERE clause filters individual rows before grouping occurs, the HAVING clause applies conditions after aggregation has taken place.