SELECt level,count(1) as level_cnt
from user_info t,examination_info t1,exam_record t2 where t.uid = t2.uid and t1.exam_id = t2.exam_id and tag='SQL' and score>80
group by level
order by count(1) DESC