Skip to content
Theory · Set operations and CTEs · lesson 7 of 10

★ Recursive WITH

Irina is at the head of the chain. Three senior baristas report to her: Pavel, Alina and Kira. Each of them has their own baristas and trainees. This chain of command is stored in the employees table, in the manager_id column: each employee except Irina has the id of their manager.

In this lesson

  • Round after round
  • Up the chain
  • Common mistake
  • Key points