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

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

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

with t1 as(
    select  author_id
    from answer_tb
    where  char_len>=100
),
t3 as(
   select t1.author_id,author_level from t1
left join author_tb t2 on t1.author_id= t2.author_id 
),
t4 as(
   select (case when author_level=5 or author_level=6 then '5-6级' 
when author_level=3 or author_level=4 then '3-4级' 
when author_level=1 or author_level=2 then '1-2级' end) level_cut   
from t3 
)
select level_cut , count(*) num
from t4
group by level_cut
order by num desc


全部评论

相关推荐

ming_ri:“很抱歉,您的简历和我们当前的职位需求不是很匹配”
点赞 评论 收藏
分享
爱喝奶茶的垂耳兔拥抱太阳:感觉项目和实习没有技术亮点和难点,单纯说了自己干了啥
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务