Forum

Find the employee d...
 
Notifications
Clear all

Find the employee details who are earning more than their supervisor?


vinodkrsetty
Posts: 16
Admin
Topic starter
(@vinodkrsetty)
Member
Joined: 2 years ago

How to find the employee details who are earning more than their supervisor?

Please help. 

1 Reply
VK
Posts: 17
 VK
(@vinodkrsetty5895)
Active Member
Joined: 9 months ago

You can use below query to achieve this.

SELECT employee.*
FROM your_table_name AS employee
JOIN your_table_name AS manager ON manager.EMPNO = employee.MGR
WHERE employee.SAL > manager.SAL

Reply
Share: