Higher Than Supervisor
A easy SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- easy
- Seniority
- L4
Problem
Surface employees whose salary is higher than their direct manager's. Pull the employee's name and salary alongside their manager's name and salary, excluding anyone who reports to no one.
Summary
When the student outscores the teacher.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.