hierarchical relationship, how to query
HI,
I've got the following data in my table:
P_KEY = 1 REL_KEY = NULL
P_KEY = 2 REL_KEY = 1
P_KEY = 3 REL_KEY = 2
I only know P_KEY = 3.
How should I write my query to obtain the highest level of the hierarchy, P_KEY = 1? Here are 3 levels, but levels can be more or less.
Thankx, Ronald.
Subject
Views
Written By
Posted
hierarchical relationship, how to query
3947
March 31, 2009 01:06AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.