SQL Practice Logo

SQLPractice Online

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

Write a query to find all employees whose salary is greater than their manager's salary. Return employee_name, employee_salary, manager_name, and manager_salary.

Relevant Tables

employees

SQL Concepts Used in This Scenario

Strengthen your understanding with these targeted learning topics: