My solution


  • 0
    Z

    '''
    SELECT t2.Name
    FROM
    (SELECT ManagerId, COUNT(Id) AS num_reports FROM Employee
    WHERE ManagerId IS NOT NULL
    GROUP BY ManagerID
    HAVING num_reports >= 5) t1
    JOIN Employee t2 ON t1.ManagerId = t2.Id
    '''


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.