select Employee.Name as Name from ( select ManagerId as Id from Employee group by ManagerId having count(Id) >= 5 ) as Manager join Employee on Manager.Id = Employee.Id
select a.user_id, round(sum(if (b.action='confirmed',1.00,0.00)) / count(a.user_id), 2) as confirmation_rate from Signups a left join Confirmations b on a.user_id = b. user_id group by a.user_id
标签:id,连接,user,Employee,ManagerId,Id,select From: https://www.cnblogs.com/clarencezzh/p/18282761