题解 | #异常的邮件概率#

异常的邮件概率

http://www.nowcoder.com/practice/d6dd656483b545159d3aa89b4c26004e

With t as (Select date, count(id) as num From email
Where send_id in (Select distinct id From user Where is_blacklist=0)
and receive_id in (Select distinct id From user Where is_blacklist=0)
Group by date ),
uc as (Select date, count(id) as num From email
Where type='no_completed' and send_id in (Select distinct id From user Where is_blacklist=0)
and receive_id in (Select distinct id From user Where is_blacklist=0)
Group by date )
Select t.date, Round((uc.num/t.num),3)as p
From t Join uc On t.date=uc.date
全部评论

相关推荐

一个菜鸡罢了:哥们,感觉你的简历还是有点问题的,我提几点建议,看看能不能提供一点帮助 1. ”新余学院“别加粗,课程不清楚是否有必要写,感觉版面不如拿来写一下做过的事情,教育经历是你的弱势就尽量少写 2. “干部及社团经历”和“自我评价”删掉 3. 论文后面的“录用”和“小修”啥的都删掉,默认全录用,问了再说,反正小修毕业前肯定能发出来 4. 工作经验和研究成果没有体现你的个人贡献,着重包装一下个人贡献
点赞 评论 收藏
分享
10-30 23:23
已编辑
中山大学 Web前端
去B座二楼砸水泥地:这无论是个人素质还是专业素质都👇拉满了吧
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务