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

Join Shalyam Newsletter

Get exclusive insights with every issue: education, research and innovation news.

One email a week. Unsubscribe any time.