select t.title title, avg(s.salary) from
titles t inner join salaries s on t.emp_no=s.emp_no
group by title
order by avg(s.salary)
select t.title title, avg(s.salary) from
titles t inner join salaries s on t.emp_no=s.emp_no
group by title
order by avg(s.salary)