Each employee's level in the hierarchy
In the org chart emp (employee → manager via manager_id), compute each one's level: the topmost (no manager) is level 1, their reports are 2, and so on down. Return id and depth, ordered by id.
Kampjun tal-output mistenni
Dan hu kif tidher tweġiba korretta — l-għadd tar-ringieli huwa tiegħu stess, m'għandux għalfejn jaqbel mat-tabelli tal-iskema.
| id | depth |
|---|---|
| 1 | 1 |
| 2 | 2 |
| 3 | 2 |
Idħol biex tara l-istorja tas-sottomissjonijiet
IdħolIdħol biex tuża l-Mentor tal-AI
Idħol