| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Hierachical structures - an overview
"Lennart Jonsson" <lennart_at_kommunicera.umea.se> wrote in message
> > 1a. Adjacency list + as per:
> > http://fungus.teststation.com/~jon/treehandling/TreeHandling.htm
> > Not sure about this. It claims to give the path upwards. It looks like
it
> > merely gives the ancestors, which isn't the same thing.
Thanks you for putting me onto that in the first place
> In what way does this differ? Are you meaning that the set of
> ancestors is unordered, compared to the path?
I think so
> In that case the path is
> easy to create from the ancestor set.
No doubt. I'll have a go (unless you can do it off the top of your head).
> It is also possible to create a total ordering of a subtree and
> thereby do, for example an inorder traversal. However, this becomes
> impractical for relatively small subtrees since the total ordering is
> prox O(n^2) (where n is the cardinality of the ancestor relation for
> the subtree)
>
>
> > Any other techniques?
> >
>
> Recursive SQL. It is supported by atleast two databases, DB2 (WITH)
> and Oracle (CONNECT BY).
This will be Jet or SQL Server.
Thanks, Mike MacSween Received on Sun Jan 04 2004 - 10:55:47 CST
![]() |
![]() |