解答 一定要想到可以使用自身的表来做辅助 select * from grade as g1 where score>(select avg(score) from grade as g2 where g1.job=g2.job group by job) order by id