select job, round(avg(score),3) avg
from grade
group by job 
order by avg desc

本题的难点,在 平均值的 四舍五入, round( ) 取小数函数。 round( 数值, 小数位 )