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.

TREE View - anyway to grab the Prior, and its Prior ids?

Bill CarlisleOct 18 2010 — edited Oct 21 2010
Hi, I have a Tree View.
I have branches that can be apart of more than one trunk.
If I click on a branch I want to also know what its parent is, and its parent (unless it is already at the top)
If I click on Person I want to know Budget, which is the same, but also Expense Report 13

Trunk One
---Expense Report 13
------Budget
---------- Person <====================== click
Trunk Two
---Expense Report 24
------Budget
---------- Person

So in the SQL I thought about Analytic Function Prior but I need 2 levels... and can we use that in a tree SQL?
This post has been answered by Frank Kulash on Oct 18 2010
Jump to Answer

Comments

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

Post Details

Locked on Nov 18 2010
Added on Oct 18 2010
4 comments
1,373 views