Skip to content
SQLSimplified
mediumemployeesjoingroup-byavg

Average Salary by Department

Problem

Return each department name and its average salary (rounded to 2 decimals), ordered by avg_salary descending.

Try It

Employees & Departments

Loading database engine...

Hint

Solution

Search

Search lessons, functions, examples, and practice problems