题解 | #未完成率较高的50%用户近三个月答卷情况#

未完成率较高的50%用户近三个月答卷情况

http://www.nowcoder.com/practice/3e598a2dcd854db8b1a3c48e5904fe1c

select t4.uid, extract(year_month from t4.start_time) as start_month, count(t4.start_time) as total_cnt, count(t4.submit_time) as complete_cnt from
(select er.uid, er.start_time, er.submit_time, dense_rank() over(order by extract(year_month from er.start_time) desc) as dr from (select t3.uid from (select t2.uid from (select uid, cume_dist() over(order by incomplete_rate) as rn from (select uid, (count(start_time) - count(submit_time)) as incomplete_cnt, count(start_time) as total_cnt, ((count(start_time) - count(submit_time)) / count(start_time)) as incomplete_rate from examination_info ei inner join exam_record er on ei.exam_id=er.exam_id where tag='SQL' and start_time is not null group by uid) t1) t2 where t2.rn > 0.5) t3 inner join user_info ui on t3.uid=ui.uid where ui.level in (7,6)) t3 inner join exam_record er on t3.uid=er.uid) t4 where t4.dr in (1,2,3) group by t4.uid,extract(year_month from t4.start_time) order by uid,start_month;

全部评论

相关推荐

等华子还是签贝壳?
浩浩找实习:贝壳神中神梦中情场,但是没有面试机会
点赞 评论 收藏
分享
点赞 评论 收藏
分享
10-09 00:50
已编辑
长江大学 算法工程师
不期而遇的夏天:1.同学你面试评价不错,概率很大,请耐心等待;2.你的排名比较靠前,不要担心,耐心等待;3.问题不大,正在审批,不要着急签其他公司,等等我们!4.预计9月中下旬,安心过节;5.下周会有结果,请耐心等待下;6.可能国庆节前后,一有结果我马上通知你;7.预计10月中旬,再坚持一下;8.正在走流程,就这两天了;9.同学,结果我也不知道,你如果查到了也告诉我一声;10.同学你出线不明朗,建议签其他公司保底!11.同学你找了哪些公司,我也在找工作。
点赞 评论 收藏
分享
1 收藏 评论
分享
牛客网
牛客企业服务