Employees who out-earn their manager
HR is auditing pay bands and wants to flag any employee who earns more than their own manager.
Return the employee's name and salary.
Schema
▸employees
| id | INT |
| name | TEXT |
| manager_id | INT |
| salary | NUMERIC |
Basic
The example input, expected output, and walkthrough for this question unlock with a Basic plan.
Basic
The reference solution and walkthrough for this question unlock with a Basic plan.
See Basic plansRM 25/mo · cancel anytime
Basic
This is a Basic question
Premium practice questions unlock with a Basic plan. The full solution, expected output, and grading are available to Basic members.
RM 25/mo · cancel anytime