题目链接:点击打开链接
题目大意:略。
解题思路:略。
AC 代码
--解决方案(1) SELECTNameFROMEmployeeASt1JOIN (SELECTManagerIdFROMEmployeeGROUPBYManagerIdHAVINGCOUNT(ManagerId) >=5) ASt2ONt1.Id=t2.ManagerId; --解决方案(2) SELECTe1.NameFROMEmployeee1, Employeee2WHEREe1.Id=e2.ManagerIdGROUPBYe1.IdHAVINGCOUNT(e1.Id) >=5