Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Regarding Sys_Connect_By_Path

FahedAkhterJun 28 2010 — edited Dec 16 2010
SELECT E.Empno,Sys_Connect_By_Path(E.Deptno,'\') path
FROM Scott.Emp E,Scott.Dept D
WHERE D.Deptno = E.Deptno
AND E.Empno = 7876
CONNECT BY PRIOR Empno = Mgr
START WITH Mgr IS NULL

Output of this query is

Empno Path
7876 \10\20\20\20

Requirement

I want that the path come in this way
\20\20\20\10
Reverse the above path

Please guide

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 13 2011
Added on Jun 28 2010
10 comments
3,836 views