SELECT s.emp_no, s.salary, s.from_date, s.to_date, dm.dept_no FROM salaries s INNER JOIN dept_manager dm USING(emp_no) ORDER BY s.emp_no;
SELECT s.emp_no, s.salary, s.from_date, s.to_date, dm.dept_no FROM salaries s INNER JOIN dept_manager dm USING(emp_no) ORDER BY s.emp_no;