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

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

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

SELECT
    qd.difficult_level,
    SUM(IF (result = 'right', 1, 0)) / COUNT(qpd.device_id) AS correct_rate
FROM
    question_detail AS qd
    LEFT JOIN question_practice_detail AS qpd ON qpd.question_id = qd.question_id
    LEFT JOIN user_profile AS up ON up.device_id = qpd.device_id
WHERE
    up.university = '浙江大学'
GrOUP BY
    qd.difficult_level
ORDER BY
    correct_rate ASC;

全部评论

相关推荐

比亚迪汽车新技术研究院 硬件工程师 总包21左右 硕士
点赞 评论 收藏
分享
点赞 评论 收藏
分享
1 收藏 评论
分享
牛客网
牛客企业服务