Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: transitive closure code and SQL wanted

Re: transitive closure code and SQL wanted

From: Kendall <kendallwillets_at_yahooooooooo.com>
Date: Mon, 13 May 2002 13:45:37 -0700
Message-ID: <ue09fhno8105a4@news.supernews.com>


In article <107e75b8.0205130541.decb964_at_posting.google.com>, "Steven Tolkin" <steve.tolkin_at_fmr.com> wrote:

> Summary:

y.
>
> Details:
> My data is a tree of nodes.
> Suppose I have a table named node_parent that has two columns: node_id
> and parent_id. I want the code that will calculate a table named
> node_ancestor having the two columns: node_id and ancestor_id.
>
>

Just checking: You say the data is a tree, so I assume there is only one parent per node, except at the root. Is that correct, or can a node have more than one parent? You only need a separate table like node_parent if a node can have multiple parents. Received on Mon May 13 2002 - 15:45:37 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US