Skip to content

Commit

Permalink
Time: 1234 ms (5.01%), Space: 0B (100.00%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
joseantoniochacon committed Jun 17, 2024
1 parent 7270434 commit 5607efe
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Write your MySQL query statement below
SELECT employee_id FROM (SELECT * FROM Employees e1 WHERE e1.manager_id IS NOT NULL GROUP BY e1.employee_id HAVING (SELECT e2.employee_id FROM Employees e2 WHERE e2.employee_id = e1.manager_id) IS NULL) e3 WHERE salary < 30000 ORDER BY employee_id;

0 comments on commit 5607efe

Please sign in to comment.