Scenario SQL Question
Average Salary by Department
Build mastery in Aggregations with this scenario-based SQL challenge and live execution support.
Problem Statement
For each department that has at least one employee, return the department_name and the average salary as avg_salary (rounded to 2 decimals). Sort by avg_salary descending.
Relevant Tables
departmentsemployees
SQL Concepts Used in This Scenario
Strengthen your understanding with these targeted learning topics: