题解 | 统计所有课程参加培训人次

统计所有课程参加培训人次

https://www.nowcoder.com/practice/98aad5807cf34a3b960cc8a70ce03f53

超暴力
select
    sum(case 
        when course is null then 0
        when course like '%,%,%' then 3
        when course like '%,%' then 2
        when course like '%' then 1
        end) as staff_nums
from
    cultivate_tb

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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