select d.dept_no,e.emp_no,s.salary from employees e left join dept_emp d on e.emp_no = d.emp_no left join salaries s on s.emp_no = e.emp_no where e.emp_no not in ( select m.emp_no from dept_manager m ) and d.to_date='9999-01-01'