sqlite

SELECT de.dept_no,de.emp_no, max(s.salary) maxSalary 
FROM dept_emp de INNER JOIN salaries s ON de.emp_no=s.emp_no
GROUP BY de.dept_no;