Why the following statement is erroneous? SELECT dept_name, ID, avg (salary) FROM instructor GROUP BY dept_name;
- Dept_id should not be used in group by clauseAnswer
- Group by clause is not valid in this query
- Avg(salary) should not be selected
- None
Source: SPSC Secondary School Teacher Science — 7 May 2024found on TestPoint
Explanation coming soon.
