select a.id, a.job, a.score from
grade as a
left join
(
select job, avg(c.score) as score from
grade as c
group by c.job
) as b
on a.job = b.job
where a.score > b.score;
Hope is a good thing,maybe the best of things,and no good thing ever dies.----------- Andy Dufresne