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!

Getting parent-child data from a single column in a table

448749Feb 18 2009 — edited Feb 18 2009
Hi,
I have a parent-child data in a column.

Eg:
0
00
01
010
011
1
10
11

These values are present in the single column itself. My need is to get the parent values for the given child value.
For eg: If I am giving the input as 011, the query should return all its parents, i.e. 01 and 0

Could you please give me any inputs on this?

Thanks,
GV
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 18 2009
Added on Feb 18 2009
14 comments
968 views