Your question is SQL Ranking: 3rd Highest Salary. Start with the requirements and the one table on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
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 |