____ in SQL, is used to specify the conditions on rows with GROUP BY clause.
____ in SQL, is used to specify the conditions on rows with GROUP BY clause.
Solution
✅ Correct Option: 3
The HAVING clause specifies conditions on the groups formed by GROUP BY. It is applied after grouping, so it can use aggregate functions such as , and .
Example: SELECT dept, COUNT(*) FROM emp GROUP BY dept HAVING COUNT(*) > 5;
Option 2: WHERE filters individual rows before grouping and cannot use aggregate functions, so it cannot set conditions on groups.
Option 4: ORDER BY only sorts the final result and does not filter anything.
Related questions:
2026: 21 May Shift 1
2025: 15 May Shift 2
2026: 23 May Shift 2
2026: 29 May Shift 2
2025: 27 May Shift 2