Earning More Than the Boss
HR is reviewing pay anomalies — sometimes a direct report earns more than their manager. Find every such employee and output their ID and name.
Expected output sample
This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.
| name | employee_id |
|---|---|
| Eve | 5 |
| Frank | 6 |
| Henry | 8 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in