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

Employees Earning More Than Their Managers

Easy Joins

Find the names of employees who earn more than their direct manager.

Table schema

Employees(id INT PRIMARY KEY, name VARCHAR(50), salary INT, manager_id INT NULL)

Sample data

id | name | salary | manager_id
1 | Joe | 70000 | 3
2 | Henry | 80000 | 4
3 | Sam | 60000 | NULL
4 | Max | 90000 | NULL

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.