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.
Esempio di output atteso
Ecco come appare una risposta corretta — il suo numero di righe è a sé stante, non deve corrispondere alle tabelle dello schema.
| id |
|---|
| 4 |
| 5 |
| 6 |
Accedi per vedere la cronologia degli invii
AccediAccedi per usare l'AI Mentor
Accedi