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.
Exempel på förväntad utdata
Så här ser ett korrekt svar ut — radantalet är dess eget, det behöver inte matcha schematabellerna.
| id |
|---|
| 4 |
| 5 |
| 6 |
Logga in för att se historik över inskick
Logga inLogga in för att använda AI-mentorn
Logga in