我稍微修改了一下代码,可以在sqlite里面跑了,效率的确不高 select date ,round(cast(count(case when type = 'no_completed' then 1 else null end) as double)/count(id),3) as p from email where send_id in (select id from user where is_blacklist = 0) and receive_id in (select id from user where is_blacklist = 0) group by date;
点赞

相关推荐

专心打鱼:互联网搬运工,贴子都要偷
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
11-21 19:05
点赞 评论 收藏
分享
牛客网
牛客企业服务