SELECT d1.dept_no, d1.emp_no, s1.salaryFROM dept_emp as d1INNER JOIN salaries as s1ON d1.emp_no=s1.emp_noAND d1.to_date='9999-01-01'AND s1.to_date='9999-01-01'WHERE s1.salary in (SELECT MAX(s2.salary)FROM dept_emp as d2INNER JOIN salaries as s2ON d2.emp_no=s2.emp_noAND d2.to_date='9999-01-01'AND s2....