select id,job,score from grade g1 where score>(select avg(score)as avg from grade g2 where g1.job=g2.job group by g2.job) order by id; #一.计算各job的平均得分 select avg(score)as avg from grade g2 group by g2.job 二.用关联子查询取出各job的分数大于平均值的行 select id,job,score from gra...