570. Managers with at Least 5 Direct Reports

윤지현·2024년 8월 23일

SQL(Programmers)

목록 보기
89/184
  • 문제
  • 정답
SELECT E.name
FROM Employee E JOIN Employee M ON E.id = M.managerId
GROUP BY M.managerId
HAVING count(M.managerId) >= 5
  • 결과
profile
첫 시작

0개의 댓글