The Plymouth Rock People Operations team needs a department-level view of its highest-paid employees. Write a PostgreSQL query that returns the top five salaries within each department.
department_id.employee_id as the deterministic tie-breaker.NULL salaries should not appear in the top five when a department has at least five non-NULL salaries.| Column | Type | Description |
|---|---|---|
| department_idPK | INTEGER | Primary key for the department |
| department_name | VARCHAR(100) | Name of the Plymouth Rock department |
| Column | Type | Description |
|---|---|---|
| employee_idPK | INTEGER | Primary key for the employee |
| employee_name | VARCHAR(100) | Employee's full name |
| department_id | INTEGER | References departments.department_id |
| salary | NUMERIC(10,2) | Annual salary in dollars |