Snapmint’s People Analytics team wants to identify all employees working in the department of the company’s highest-paid employee. Write a PostgreSQL query that returns the relevant employee and department details.
employees table.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee’s full name |
| department_id | INT | References departments.department_id |
| job_title | VARCHAR(100) | Employee’s job title |
| salary | NUMERIC(12,2) | Annual employee salary |
| Column | Type | Description |
|---|---|---|
| department_idPK | INT | Unique department identifier |
| department_name | VARCHAR(100) | Department name |