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

每类试卷得分前3名

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

select *
from (
select 
    tag as tid,
    uid,
    row_number() over (partition by tag order by max_score desc,min_score desc,uid desc) as ranking
from
(select 
    tag,
    uid,
    max(score) as max_score,
    min(score) as min_score
from exam_record join examination_info using(exam_id)
group by tag,uid) rnk) rnk_a
where ranking <=3

全部评论

相关推荐

昨天 20:49
武汉大学 Java
点赞 评论 收藏
分享
孙艹肘:校招不给三方直接让实习我都去了,,主打一个在学校呆着也是闲着,不如出来实习一下
点赞 评论 收藏
分享
牛客41406533...:回答他在课上学,一辈子待在学校的老教授用三十年前的祖传PPT一字一句的讲解,使用谭浩强红皮书作为教材在devc++里面敲出a+++++a的瞬间爆出114514个编译错误来学这样才显得专业
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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