题解 | 某乎问答高质量的回答中用户属于各级别的数量

某乎问答高质量的回答中用户属于各级别的数量

https://www.nowcoder.com/practice/69c85db3e59245efb7cee51996fe2273

select (case when author_level between 1 and 2 then '1-2级'
 when author_level between 3 and 4 then '3-4级'
 else '5-6级'
 end
 ) as level_cut,
 count(an.issue_id) as num

 from author_tb au
 join(
select * from answer_tb where char_len>=100) an
on au.author_id = an.author_id
group by level_cut
order by num desc

简单

全部评论

相关推荐

Wy_m:只要不是能叫的上名的公司 去实习没有任何意义 不如好好沉淀自己
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务