| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Employee table SQL question
Use the START WITH/CONNECT BY clause of the SELECT statement, along these lines:
SELECT ....
FROM Employee
START WITH Id= (SELECT Id FROM Employee WHERE Login =
(SELECT USER FROM DUAL)
CONNECT BY Id = PRIOR Supervisor_ID;
For additional information about this type of queries, check out the book "ORACLE: The Complete Reference, 3rd Edition" by George Koch and Kevin Loney
Hope this helps.
Michael Serbanescu
![]() |
![]() |