The employees table has a manager_id column: the number of the employee's manager. A manager is an employee too, and their row sits in the same table. Olga's manager_id is 2, and number 2 is Pavel. To show an employee's name next to their manager's name, the table has to be joined to itself.
In this lesson
- Two copies of one table
- An employee without a manager
- Common mistake
- Key points