首页 > 其他 > 详细

570. Managers with at Least 5 Direct Reports

时间:2018-12-23 10:18:29      阅读:148      评论:0      收藏:0      [点我收藏+]

SELECT Name
FROM Employee e1
JOIN
(SELECT ManagerId
FROM Employee
GROUP BY ManagerId
HAVING COUNT(ManagerId) >= 5) e2
ON e1.Id = e2.ManagerId
;

 

570. Managers with at Least 5 Direct Reports

原文:https://www.cnblogs.com/yuesi/p/10163199.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!