题解 | #试卷发布当天作答人数和平均分#

作答试卷得分大于过80的人的用户等级分布

http://www.nowcoder.com/practice/5bc77e3a3c374ad6a92798f0ead4c744

select level, count(distinct uid) as level_cnt from exam_record join examination_info using (exam_id) join user_info using (uid) where tag = 'SQL' and score > 80 group by level order by level_cnt desc, level desc

将三个表连起来,确认两个筛选条件,一个分组条件和两个排序条件即可

全部评论

相关推荐

11-10 21:00
门头沟学院 Java
程序员牛肉:没啥必要了,3月末就开暑期实习了,你现在找还不一定能找到。看你啥学历了。 双非基本代表想进好公司无望了。211的话,现在继续沉淀,零日常实习参加暑期其实也压力不太大
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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