select gr.id,gr.job,gr.score from grade gr, (select job,avg(score) as score from grade group by job) b where gr.job = b.job and gr.score > b.score order by gr.id
select gr.id,gr.job,gr.score from grade gr, (select job,avg(score) as score from grade group by job) b where gr.job = b.job and gr.score > b.score order by gr.id