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

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

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进阶#
全部评论

相关推荐

废铁汽车人:秋招真是牛鬼蛇神齐聚一堂
点赞 评论 收藏
分享
昨天 14:22
门头沟学院 Java
大厂 测开 24*16离家近的事业编(大概只有大厂的1/4) 硕士
点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务