Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getPath of node OT

Status
Not open for further replies.

coreel91

Programmer
Nov 8, 2017
2
ES
Hi team,

Could you indicate me the methods to get the full path of the required nodes in OT?

Thanks in advance.
Regards.



 
I use this:

SELECT SYS_CONNECT_BY_PATH (name, '/') FULL_PATH
FROM dtree
START WITH dataid = xxxxxxxx
CONNECT BY PRIOR dataid = parentid
 
Just a mention the "Connect By" is a Oracle specific tree walk algorithm. SQLserver does not have it.That is the reason why OT has built DtreeAncestors and DBrowseAncestrors
to go through bread crumbing/.In SQLserver LL installation everyone has a favorite getLLPath function that emulates the "connect by" by what is the SQLserver equivalent called a CTE.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top