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.
Exemple de sortie attendue
Voici à quoi ressemble une réponse correcte — son nombre de lignes lui est propre, il n'a pas à correspondre aux tables du schéma.
| id |
|---|
| 4 |
| 5 |
| 6 |
Connectez-vous pour voir l'historique des soumissions
Se connecterConnectez-vous pour utiliser le Mentor IA
Se connecter