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

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

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

select case when author_level between 5 and 6 then '5-6级' 
            when author_level between 3 and 4 then '3-4级'
            else '1-2级' end 
            as level_cut,
            count(case when char_len >= 100 then issue_id else null end) as 高质量评论数
            from author_tb join answer_tb on author_tb.author_id = answer_tb.author_id
            group by level_cut
            having 高质量评论数 > 0
            order by 高质量评论数 desc;
全部评论

相关推荐

05-29 22:11
门头沟学院 Java
Elastic90:抛开学历造假不谈,这公司的招聘需求也挺怪的,Java开发还要求你有图文识别、移动端开发和c++的经验,有点逆天了。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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