SQL - GROUP BY and HAVING
Identify the error in this SQL query:
SELECT department, AVG(salary) FROM employees ORDER BY AVG(salary) DESC GROUP BY department;SELECT department, AVG(salary) FROM employees ORDER BY AVG(salary) DESC GROUP BY department;15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions