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!

Need procedure for tree traversing

kattavijay-JavaNetMar 25 2014 — edited Mar 26 2014

In my table i've  number of records  like below format .

MY_TABLE_NAME

NUMBERNAMEGROUPPRIMARY NUMBER
1 TEST 1ABC
2TEST2ABC1
3TEST3ABC1
4TEST4ABC2
5TEST5ABC2
6TEST6ABC3
7TEST7ABC4
8TEST8ABC5

from the above MY_TABLE_NAME is my table , for the table i need a procedure  .

here if i pass 2 as a NUMBER value to the table  i need to get all of its childs  like  4,5,7,8

can some help me with the procedure for this scenario .

Thanks in advance .

Comments

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

Post Details

Locked on Apr 23 2014
Added on Mar 25 2014
5 comments
231 views