Hexaware Technologies needs a compensation report showing the three highest-paid employees within each department. Write a PostgreSQL query that ranks employees independently inside their departments.
employee_id to make salary ties deterministic.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee full name |
| department_id | INT | Department assigned to the employee |
| salary | NUMERIC(12,2) | Annual employee salary |
| Column | Type | Description |
|---|---|---|
| department_idPK | INT | Unique department identifier |
| department_name | VARCHAR(100) | Department name |
| location | VARCHAR(100) | Primary department office location |