Employees Without a Manager

Return every employee's name and their manager's name as manager. Employees with no manager must still appear, with NULL for manager.

Order by employee name.

Expected output


name  | manager
------+--------
Alice | NULL
Bob   | Alice
Carol | Alice
Dan   | Carol
Erin  | Carol
Frank | Erin
PostgreSQL

Press Run to start the SQL engine.

SensAI
Beta
Tap the mic to stop voice mode