连接
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
加油啦!加油鸭,冲鸭!!!

浙公网安备 33010602011771号