Finacle HR reporting needs to identify employees receiving the fifth-highest salary among currently active employees. Write a PostgreSQL query that returns every employee tied at that salary and includes the employee's department name.
employment_status is ACTIVE and whose salary is not NULL.LEFT JOIN so an otherwise qualifying employee is retained even if the department reference is missing. Sort the output by employee_id.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee full name |
| department_id | INT | Department identifier |
| salary | NUMERIC(12,2) | Annual employee salary |
| employment_status | VARCHAR(20) | Current employment status |
| Column | Type | Description |
|---|---|---|
| department_idPK | INT | Unique department identifier |
| department_name | VARCHAR(100) | Department display name |