Your question is Employees Earning More Than Managers. Start with the requirements and the one table 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.
Arcesium's workforce reporting team needs to identify employees whose compensation exceeds that of their direct manager. Write a PostgreSQL query using a self-join on the employees table.
NULL.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee's full name |
| manager_id | INT | References the direct manager's employee_id |
| salary | NUMERIC(12,2) | Annual employee salary |