select t2.emp_no, salary, from_date, t2.to_date, dept_no
from dept_manager t1 left join salaries t2 on t1.emp_no = t2.emp_no
order by t2.emp_no