#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.

Uzorak očekivanog izlaza

Ovako izgleda ispravan odgovor — broj redaka je njegov vlastiti, ne mora se podudarati s tablicama sheme.

id
4
5
6

Ovdje će se pojaviti rezultat tvog upita