We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc454a2 commit 5a5f261Copy full SHA for 5a5f261
1 file changed
MySQL/employees-earning-more-than-their-managers.sql
@@ -32,6 +32,6 @@ SELECT e.Name AS Employee FROM Employee e LEFT JOIN Employee b
32
# Write your MySQL query statement below
33
SELECT Name AS Employee
34
FROM Employee e
35
- WHERE e.Salary > (SELECT Salary
+ WHERE e.ManagerId IS NOT NULL AND e.Salary > (SELECT Salary
36
FROM Employee
37
WHERE e.ManagerId = Id)
0 commit comments