Multiple choice technology databases The following statement will raise an exception on which line? select dept_name, avg(all salary), count(*) “number of employees” where deptno = dept_no and count(*) > 5 group by dept_name Reveal answer Fill a bubble to check yourself C Correct answer Explanation Aggregate functions like COUNT(*) cannot be used in a WHERE clause - they require HAVING after GROUP BY. The WHERE clause filters rows before grouping, while HAVING filters after grouping.