Jeg tror, du kan bruge "hierarkiske forespørgsler" til Oracle og prøve dette:
select manager_id supervisor
from employee
start with employee_id = 202
connect by nocycle employee_id = prior manager_id;
Jeg tror, du kan bruge "hierarkiske forespørgsler" til Oracle og prøve dette:
select manager_id supervisor
from employee
start with employee_id = 202
connect by nocycle employee_id = prior manager_id;