SQL Fundamentals — Medium
Key points
- The query uses the AVG() function to calculate average salary per department.
- The HAVING clause filters results based on the calculated average salary.
- GROUP BY groups results by department ID.
Ready to go further?
Related questions
