1.分析
AVG去平均值,
别忘了where的连接条件,
以t表中的title分组。

2.代码
SELECT t.title, AVG(s.salary)
FROM titles AS t, salaries AS s
where t.emp_no = s.emp_no
GROUP BY t.title
ORDER BY AVG(s.salary)