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

SELECT
    COUNT(*) as staff_nums
FROM
    (
        SELECT
            *
        FROM
            cultivate_tb AS ct
        WHERE
            course LIKE "%course1%"
        UNION ALL
        SELECT
            *
        FROM
            cultivate_tb AS ct
        WHERE
            course LIKE "%course2%"
        UNION ALL
        SELECT
            *
        FROM
            cultivate_tb AS ct
        WHERE
            course LIKE "%course3%"
    ) as re

全部评论

相关推荐

华为 优秀实习生 24k的基础薪资
牛客530051504号:转人工
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务