join+group by + order by
逆序排列 ASC
select titles.title,AVG(salaries.salary) as avg
from titles join salaries
where titles.emp_no = salaries.emp_no
group by titles.title
order by avg(salaries.salary) desc;