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

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

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

select

    t1.level         as level ,

    count(t1.level) as level_cnt

from              user_info t1

left join       exam_record t2

    on t2.uid = t1.uid

left join examination_info t3

    on t3.exam_id =  t2.exam_id

where t3.tag = 'SQL'

    and t2.score > 80

group by level

order by level_cnt desc

/*SQL*/;

全部评论

相关推荐

点赞 评论 收藏
转发
点赞 收藏 评论
分享
牛客网
牛客企业服务