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

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

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

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

这题目是言语理解么?

#SQL进阶#
全部评论

相关推荐

尊嘟假嘟点击就送:加v细说,问题很大
点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务