题解 | 查询成绩

查询成绩

https://www.nowcoder.com/practice/ef30689ae065434c89c129e9dfe1b4cd

with t as (
    select stu.sId
    from Student stu
    join (
        select sId, cId, score
        from SC
        group by sId, cId, score
    ) sc on stu.sId=sc.sId
    join Course c on sc.cId=c.cId
    group by stu.sId
    having avg(sc.score)>60
)
select count(*)
from t

全部评论

相关推荐

03-12 12:33
嘉应学院 Python
堆肥大王:认可你的做法,但无产阶级的兄弟们也希望你能过的更好
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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