Who manages whom

employees.reports_to holds the id of each person's manager — one employee pointing at another. Join the table with itself so every row shows the employee's full name and their manager's full name (both first_name + last_name). Jane Foster runs the store and reports to nobody: keep her in the result, with NULL where the manager's name should be.

Tables in this exercise
employees
id first_name last_name title city hire_date reports_to

Back to the chapter