SQL Practice Logo

SQLPractice Online

Scenario SQL Question

Employees Without Direct Reports (Anti-Join)

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

Problem Statement

Find every employee who is NOT a manager (i.e. nobody reports to them). Use NOT EXISTS. Return employee_id, first_name, last_name, department_name, job_title — ordered by department_id, employee_id.

Relevant Tables

employeesdepartmentsjobs

SQL Concepts Used in This Scenario

Strengthen your understanding with these targeted learning topics: