SQLDAXExcelPython
Leaderboard
Interview classicsMedium20 points

Employees who manage nobody

Return EmployeeName for employees who are not anyone's manager. Watch out: ManagerId is NULL for one row, and that breaks a plain NOT IN.

Show solutionLifetime

Runs in your browser with DuckDB, whose SQL is close to PostgreSQL. Nothing you type is sent to a server unless you save a score.

SQLselect text to run only that part
Loading editor…

Press Ctrl+Enter or Run to see the result here.