Skip to content

Commit

Permalink
Time: 3863 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 2, 2024
1 parent ecabf18 commit 54a2838
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 name FROM (SELECT name, (SELECT COUNT(e2.managerId) FROM Employee e2 WHERE e1.id = e2.managerId) AS direct_reports FROM Employee e1) dr WHERE direct_reports > 4;

0 comments on commit 54a2838

Please sign in to comment.