题解35 | #浙大不同难度题目的正确率# 个人笔记

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

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

筛选:浙江大学

分组:不同难度

正确率:作对的题目数量/全部的题目数量 正确率还可以直接用avg计算 avg(if(b.result = 'right',1,0))

排序:准确率升序 asc

表连接:join即可

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

SQL解题笔记 文章被收录于专栏

记录解题过程中遇到的问题、出现的错误以及掌握不牢固的知识点

全部评论

相关推荐

07-17 12:07
门头沟学院 Java
勇敢牛牛不怕困难
投递OPPO等公司7个岗位
点赞 评论 收藏
分享
07-16 17:55
门头沟学院 Java
点赞 评论 收藏
分享
写不来代码的小黑:这么小的城市能有做it的公司也不容易
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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