select a.emp_no, a.salary, a.from_date, a.to_date, b.dept_no from salaries a, dept_manager b where a.emp_no = b.emp_no and a.emp_no in (select emp_no from dept_manager) 为了查询dept_manager中的dept_no,所以要做内连接。 又要查各部门的领导,所以必定是dept_manager表中的人