题解 | 查询成绩

WITH
    t AS (
        SELECT
            sId
        FROM
            SC
        where
            cId in (
                select
                    cId
                from
                    Course
                where
                    cname in ('语文', '数学', '英语')
            )
        group by
            sId
        having
            sum(score) > 180
    )
select
    count(*)
from
    t

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务