WRITE SQL Query to find Max Salary from each department(PRINT dname and the Max Salary) code example
Example: how to get max salary in each department in sql
SELECT firstname, MAX(salary)
FROM department d LEFT OUTER JOIN employee e
ON (d.department_id = e.department_id)
GROUP BY department_id;