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

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

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

select
    t.level level,
    count(*) level_cnt
from
    (

select
    ui.uid uid,
    ui.level level
    from
        exam_record er
    left join examination_info ei on er.exam_id = ei.exam_id
    left join user_info ui on er.uid = ui.uid
    where
            ei.tag = 'SQL'
            and score > 80
    ) as t  group by t.level order by level_cnt desc

全部评论

相关推荐

07-22 11:35
门头沟学院 Java
谁知道这是为什么吗,有没有懂的佬给讲讲
理智的小饼干又熬夜了:鹅打电话问我参不参加后台提前批,说是有的但还没放官网
点赞 评论 收藏
分享
点赞 评论 收藏
分享
写不来代码的小黑:这么小的城市能有做it的公司也不容易
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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