select title,avg(s.salary) from titles t join salaries s on t.emp_no=s.emp_no group by title
思路:题目较为简单,使用一个表连接然后按title分组。