Question:
Which SQL clause is used to filter the results produced by the GROUP BY aggregate clause?
GROUP BY एग्रीगेट क्लॉज द्वारा उत्पन्न परिणामों को फ़िल्टर करने के लिए किस SQL क्लॉज का उपयोग किया जाता है?
Options:
- HAVING
- WHERE
- ORDER BY
- FILTER
- HAVING
- WHERE
- ORDER BY
- FILTER
Correct Answer: a)
Explanation:
HAVING filters groups after aggregation (e.g. `HAVING COUNT(*) > 5`), whereas `WHERE` filters individual rows before grouping (Option a).
ग्रुपिंग और एग्रीगेशन के बाद शर्तों को लागू करने के लिए HAVING क्लॉज का उपयोग किया जाता है (विकल्प a)।