Write a SQL query to retrieve the maximum salary per department from two related tables.
Use the departments and employees tables. Include every department, including departments without employees or with only NULL salaries.
department_name and maximum_salarydepartment_name in ascending order| Column | Type | Description |
|---|---|---|
| department_idPK | INT | Unique department identifier |
| department_name | VARCHAR(100) | Department name |
| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(150) | Employee full name |
| department_id | INT | Referenced department identifier |
| salary | NUMERIC(12,2) | Annual employee salary |