Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have an Employees table. I am using Oracle database.
Employees Table - Employee_id - first_name - last_name - manager_id - email_id
How can I query all the employees under another employee ?
Thanks.
Oracle 有一个CONNECT BY语法...
CONNECT BY
SELECT * FROM employees START WITH employee_id = 123 CONNECT BY PRIOR employee_id = manager_id