SQL practice › Joins & grouping
Earning More Than Their Manager
Medium · Joins & grouping
Return the name of every employee who earns more than their manager.
Hint
Join the employees table to itself (a self join).
Write your query on this page — it runs against the sample company database in your browser and is checked instantly.
Next problem: Orders per Month