题解 | #浙大不同难度题目的正确率#

浙大不同难度题目的正确率

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

select
    d.difficult_level,
    sum(if (c.result = "right", 1, 0)) / count(c.device_id) as correct_rate
	# avg(if (c.result = "right", 1, 0)) as correct_rate
from
    (
        select
            a.*
        from
            question_practice_detail a
            left join user_profile b on a.device_id = b.device_id
        where
            b.university = "浙江大学"
    ) as c
    left join question_detail as d on c.question_id = d.question_id
group by
    d.difficult_level
order by
    correct_rate

全部评论

相关推荐

11-29 11:21
门头沟学院 Java
总包48.5w,意想不到的价格
想开了的垂耳兔很喜欢拱白菜:转人工
点赞 评论 收藏
分享
评论
1
收藏
分享
牛客网
牛客企业服务