Page 1 of 1

Why the following statement is erroneous?

Posted: Thu Jul 14, 2022 8:45 am
by answerhappygod
SELECT dept_name, ID, avg (salary)
FROM instructor
GROUP BY dept_name;
a) Dept_id should not be used in group by clause
b) Group by clause is not valid in this query
c) Avg(salary) should not be selected
d) None