题解 | 考试分数(二)

考试分数(二)

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

select
    id,
    job,
    score
from grade g1
where score > (
    select 
        avg(score)
    from grade g2
    where g2.job  = g1.job
    
)
order by id asc;

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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