CBSE Class 12 Informatics Practices
Question 35 of 90
Querying Using SQL — Question 13
Back to all questionsHaving, where
Reason — Aggregate functions can be used in the select list or the HAVING clause of a select statement. But they cannot be used in a WHERE clause. The reason for this is that the WHERE clause filters rows before any grouping or aggregation occurs, while HAVING clause applies conditions to groups after the data has been grouped using the GROUP BY clause.