题解 | #作答试卷得分大于过80的人的用户等级分布#
作答试卷得分大于过80的人的用户等级分布
https://www.nowcoder.com/practice/5bc77e3a3c374ad6a92798f0ead4c744
select level,count(*) level_cnt from user_info where uid in( select distinct t2.uid from examination_info t1 join exam_record t2 on t1.exam_id = t2.exam_id and t1.tag = 'SQL' and t2.score > 80) group by level order by level_cnt desc,level desc