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

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

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

问题分解: 1.浙江大学的用户 university='浙江大学' 2.不同难度 group by difficult_level 3.正确率顺序排序 order by correct_rate 4.正确率 sum(if(result='right',1,0) / count(question_id) as correct_rate

select
    difficult_level,sum(if(result='right',1,0)) / count(d.question_id) as correct_rate
from
    question_practice_detail p
join
    user_profile u
ON
    p.device_id = u.device_id
join
    question_detail d
on
    p.question_id = d.question_id
where
    university='浙江大学'
group by 
    difficult_level
order by
    correct_rate
全部评论

相关推荐

渴望wlb的牛油果很...:直说卡第一学历不就行了 非得拐弯抹角
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务