Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Departments Above the Company Average Salary

Return departments whose average salary is higher than the average salary of the whole company (all employees).

Table schema

Employees(id INT PRIMARY KEY, dept VARCHAR(10), salary INT)

Sample data

id | dept | salary
1 | IT | 90
2 | IT | 70
3 | HR | 40
4 | HR | 50
5 | Ops | 60

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.