Your question is Find Employee With Max Salary. 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.
Zscaler’s People Analytics team needs to identify the employee or employees with the highest recorded salary and display their department. Write a PostgreSQL query using the employees and departments tables.
employees, including ties.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee full name |
| department_id | INT | Referenced department assignment |
| salary | NUMERIC(12,2) | Recorded annual salary |
| Column | Type | Description |
|---|---|---|
| department_idPK | INT | Unique department identifier |
| department_name | VARCHAR(100) | Department name |