I would like to pull list of employees who are managers of me. Have a look at below query:
SELECT SYS_CONNECT_BY_PATH (username, ':') AS "Liste Membres",LEVEL
FROM employees
WHERE CONNECT_BY_ISLEAF = 1
AND username = '150') -- My_code
START WITH manager IS NULL
CONNECT BY PRIOR username = manager
The result of this query is:
:1:20:120:150
The result that I want to get:
:1:20:120: