简化一下 select e.date,round(sum(e.type = 'no_completed')/count(e.type),3) as pc1 from email as e, user as u1, user as u2 where e.send_id = u1.id and e.receive_id = u2.id and u1.is_blacklist = 0 and u2.is_blacklist = 0 group by e.date order by e.date
2

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务