select (case when author_level >= 5 and author_level <= 6 then '5-6级' when author_level >= 3 and author_level <= 4 then '3-4级' when author_level >= 1 and author_level <= 2 then '1-2级' end) as level_cnt, count(issue_id) num from answer_tb t1 left join author_tb t2 using(author_id) where char_len > 100 group by level_cnt order by num desc

京公网安备 11010502036488号