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

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

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

with t1 as(
    select u1.uid, e1.exam_id,score,tag,level from exam_record e1
    left join examination_info e2
    on e1.exam_id =e2.exam_id
    left join user_info u1
    on u1.uid =e1.uid
    where tag = 'SQL' and score>80
)
select level,count(1) level_cnt from t1
group by level
order by level_cnt desc

全部评论

相关推荐

Minamotoek...:你这个简历,看一眼就感觉很乱,而且还写什么羽毛球教练和训练教官之类的,感觉和你要投的岗位很不相干
投递前程无忧等公司10个岗位
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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