Your question is Highest Salary Department Employee IDs. Start with the requirements and the two tables 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.
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 |