AXA XL's Financial Planning and Analysis team needs a department-level view of salary bands. Write a PostgreSQL query using a window function to display employees earning the third-highest distinct salary within each department.
| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee's name |
| department | VARCHAR(50) | Employee's department |
| salary | NUMERIC(12,2) | Annual salary |