Easy SQL


  • 0
    Y
    select t1.Name
    from Employee t1
    left join Employee t2
        on t1.Id = t2.ManagerId
    group by t1.Name
    having count(*) >= 5
    

Log in to reply
 

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