select * from grade a where exists(
    select avg(score) avg from grade b where a.job = b.job group by job 
    having a.score> avg
)
order by id