题解 | #验证刷题效果,输出题目真实通过率#

验证刷题效果,输出题目真实通过率

https://www.nowcoder.com/practice/c4fd4b545a704877b510f18503ad523f

select
    user_id,
    count(distinct if(result_info = 1, question_id, null)) / count(distinct question_id) question_pass_rate ,
    count(if(result_info = 1, question_id, null)) / count(question_id) pass_rate,
    count(question_id) / count(distinct question_id) question_per_cnt
from
    done_questions_record
group by
    user_id
having
    count(distinct if(result_info = 1, question_id, null)) / count(distinct question_id)>0.6

全部评论

相关推荐

邮小鼠:粤嵌的项目水的要死 来我们学校带过课程实习 项目名字是车机终端 实际上就是写了了个gui 还是老师把代码发给你你改改的那种
点赞 评论 收藏
分享
牛客969571862号:昨天捞我今天面这个,岗位一模一样,感觉就是面着玩
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务