Afiniti’s compensation analytics team needs to identify employees at the fourth-lowest salary level among active employees. Write a PostgreSQL query that returns every employee tied at that salary level, along with the department name when available.
employee_id order.| Column | Type | Description |
|---|---|---|
| employee_idPK | INTEGER | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee full name |
| salary | NUMERIC(10,2) | Annual employee salary |
| employment_status | VARCHAR(20) | Current employment status |
| department_id | INTEGER | Referenced department identifier |
| Column | Type | Description |
|---|---|---|
| department_idPK | INTEGER | Unique department identifier |
| department_name | VARCHAR(100) | Department name |