这两个表是拉链表,所以要进行日期限制的 select t1.emp_no ,t2.salary ,t2.from_date ,t2.to_date ,t1.dept_no from dept_manager t1 left join salaries t2 on t1.emp_no = t2.emp_no where t1.to_date = '9999-01-01' and t2.to_date = '9999-01-01' order by t1.emp_no