Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> about hierarchical query
hi all,
how can I write an hierarchical query to view all level of my tree, but
only the branches end with leaves that satisfy some conditions?
for example, this is my tree in my hierarchical table:
A1 A2 / \ / \ / \ / \ B1 B2 B3 B4 / \ / \ / \ / \
if only C1, C5 and C6 satisfy some conditions i wish to have this result from my query:
A1 A2 / / / / B1 B3 / / \ C1 C5 C6 level node --------- --------- 1 A1 2 B1 3 C1 1 A2 2 B3 3 C5 3 C6
thanks for your help
Paolo
Received on Wed Nov 10 2004 - 06:02:59 CST
![]() |
![]() |