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!

how to traverse the tree in both direction

5562Apr 29 2005 — edited Apr 29 2005
Hi there,

I have data like the following
parent child
1
1 2
1 3
2 4
3 5
6
6 7
6 8


I want to get the following result by giving the criteria child = 3

1/2
1/2/4
1/3
1/3/5

They are the rows related to record 3.

Could you tell me how to do this?

Thanks,
Mandy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2005
Added on Apr 29 2005
3 comments
487 views