码迷,mamicode.com
首页 > 其他好文 > 详细

570. Managers with at Least 5 Direct Reports

时间:2018-12-23 11:18:31      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:from   repo   port   ast   report   with   nbsp   manage   sel   

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

标签:from   repo   port   ast   report   with   nbsp   manage   sel   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!