题解 | #每类试卷得分前3名#

每类试卷得分前3名

http://www.nowcoder.com/practice/255aa1863fe14aa88694c09ebbc1dbca

(select tag,uid,rank()over( order by g desc,d desc,uid desc) from(select tag,uid,max(score) g,min(score) d from examination_info join exam_record using(exam_id) where score is not null and tag='C++' group by uid) a limit 3) union (select tag,uid,rank()over( order by g desc,d desc,uid desc) from(select tag,uid,max(score) g,min(score) d from examination_info join exam_record using(exam_id) where score is not null and tag='SQL' group by uid) a limit 3) union (select tag,uid,dense_rank()over( order by g desc,d desc,uid desc) from(select tag,uid,max(score) g,min(score) d from examination_info join exam_record using(exam_id) where score is not null and tag='算法' group by uid) a limit 3)

全部评论

相关推荐

04-21 13:50
已编辑
北京理工大学 硬件测试
我们学校连夜发了声明,绝了绝了!看完了全部ppt,震碎三观。一般情况下我是站学生的,但这不是一般情况。这男的不能被取消学位吗?自己吃到了红利,靠着面试泄题得到的保研,又反手举报导师。这导师是《被举报系列》里最惨最恋爱脑的了,当然最可怜的是他的同妻……
牛客小黄鱼:看了ppt的聊天记录,真不知道谁才是受害者!有人为你剥过柚子吗?有人为你雪地里等你吗?有人为你写过情书吗?有人为你规划未来吗?有人为你小心翼翼吗?有人为你整页失眠失眠吗? 有人为你送上自己的科研成果吗?有人为你安排出国留学吗?有人愿意给你一个月2万吗?
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务