#1135

All reports under a manager

In the org chart emp, each employee names a manager in manager_id. Find everyone who reports — directly or through a chain of managers — to the employee with id = 2. Return id ascending.

Eksempel på forventet output

Sådan ser et korrekt svar ud — dets rækketal er dets eget og behøver ikke at matche skematabellerne.

id
4
5
6

Resultatet af din forespørgsel vises her