Write an SQL query using joins to find the employee with the maximum salary in a department.
Return every employee tied for the highest non-null salary in each department. Departments without an eligible employee should be excluded.
department_name, employee_id, employee_name, and salary.department_name ascending, then employee_id ascending.| Column | Type | Description |
|---|---|---|
| department_idPK | INTEGER | Unique department identifier |
| department_name | VARCHAR(100) | Department name |
| Column | Type | Description |
|---|---|---|
| employee_idPK | INTEGER | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee full name |
| department_id | INTEGER | Employee department identifier |
| salary | NUMERIC(12,2) | Employee salary |