Scenario SQL Question
Employees Earning More Than Their Manager
Build mastery in Self Joins Hierarchical with this scenario-based SQL challenge and live execution support.
Problem Statement
Find every employee whose salary is strictly greater than their direct manager's salary. Return employee_name, employee_salary, manager_name, manager_salary — ordered by employee_name, employee_id.
Relevant Tables
employees
SQL Concepts Used in This Scenario
Strengthen your understanding with these targeted learning topics: