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

异常的邮件概率

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

select date,round(sum(type='no_completed')/count(*),3) p
from email e,user u1,user u2
where send_id=u1.id and receive_id=u2.id and u1.is_blacklist=0 and u2.is_blacklist=0
group by date
order by date
全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务