Skip to content

Commit b88fdf8

Browse files
authored
Create 181-employees-earning-more-than-their-managers.sql
1 parent 8a31438 commit b88fdf8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Write your MySQL query statement below
2+
SELECT Name AS Employee FROM Employee AS E,
3+
(SELECT DISTINCT Id, Salary FROM Employee) AS M
4+
WHERE E.ManagerId = M.Id AND E.Salary > M.Salary

0 commit comments

Comments
 (0)