SQL Practice Logo

SQLPractice Online

Scenario SQL Question

Find Employee Manager Details Using Self Join

Build mastery in Self Joins Hierarchical with this scenario-based SQL challenge and live execution support.

Problem Statement

Write a query to display each employee along with their manager's name using a self join. Return employee_id, employee_name, manager_id, and manager_name. Handle the case where there is no manager (NULL).

Relevant Tables

employees

SQL Concepts Used in This Scenario

Strengthen your understanding with these targeted learning topics: