MYSQL:
select salaries.*,dept_manager.dept_no from salaries join dept_manager on salaries.emp_no=dept_manager.emp_no order by salaries.emp_no;