MYSQL:
select title,avg(salary) from titles join salaries on titles.emp_no=salaries.emp_no GROUP by title order by avg(salary);
MYSQL:
select title,avg(salary) from titles join salaries on titles.emp_no=salaries.emp_no GROUP by title order by avg(salary);