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

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

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

select 
    case when author_level = 1 or author_level = 2 then '1-2级'
    when author_level = 3 or author_level = 4 then '3-4级'
    else '5-6级' end as level_cut,
    count(a.author_id) as num
from  
    author_tb as a
right join(
    select 
        author_id
    from 
        answer_tb
    where
        char_len > 100
) as b
on a.author_id = b.author_id
group by 1
order by num desc

全部评论

相关推荐

2025-11-12 13:06
东华理工大学 Java
程序员牛肉:你这其实一点都没包装,标准的流水线产品。 实习现在不一定能解决你的问题,你太浮躁了。你看了多少源码?看了多少技术博客?真的没必要这么浮躁的着急找实习,沉下心来学习
投递实习岗位前的准备
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务