题解 | #考试分数(二)#
考试分数(二)
https://www.nowcoder.com/practice/f456dedf88a64f169aadd648491a27c1
with inter as (select job , avg(score) as `a` from grade group by job) select g.id , g.job , g.score from grade g inner join inter i on g.job = i.job and g.score > i.a order by g.id;