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

每类试卷得分前3名

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

select * from
(select tag,uid,rank()over(partition by tag order by max desc,min desc,uid desc ) ranking from
(
select tag,uid,max(score) max,min(score) min from
examination_info a left join exam_record b
on a.exam_id = b.exam_id
where b.submit_time is not null
group by tag,uid
) c)d
where ranking <4;

全部评论

相关推荐

Twilight_mu:经典我朋友XXXX起手,这是那种经典的不知道目前行情搁那儿胡编乱造瞎指导的中年人,不用理这种**
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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