FROM Employee AS e1 INNER JOIN Employee AS e2
ON e1.Id = e2.ManagerId
GROUP BY e1.Name
HAVING Count(e1.Name) >= 5
When multiple managers have same name, does your code work?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.