SQL Practice Logo

SQLPractice Online

Scenario SQL Question

Find Managers with Most Direct Reports

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

Problem Statement

Write a query to find the top 3 managers with the most direct reports. Return manager_id, manager_name, and direct_reports_count. Order by count descending.

Relevant Tables

employees

SQL Concepts Used in This Scenario

Strengthen your understanding with these targeted learning topics: