题解 | #牛客考试分数(二)#

考试分数(二)

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

with avg_sc as (
select job,avg(score) as j_s
    from grade
    group by job
),
id_job as (
    select id,a.job,score,j_s 
    from grade a
    left join avg_sc b 
    on a.job=b.job
)
select id,job,score
from id_job
where score>j_s
group by id
order by id
全部评论

相关推荐

10-09 09:39
门头沟学院 C++
HHHHaos:这也太虚了,工资就一半是真的
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务