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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Hierarchical table design, child has multiple parent

Re: Hierarchical table design, child has multiple parent

From: Jared Still <jkstill_at_gmail.com>
Date: Mon, 10 Jan 2005 09:46:24 -0800
Message-ID: <bf4638050110094631cea11@mail.gmail.com>


Do some research on BOM, also known as Bill Of Materials.

This is quite a common design and programming problem, that is not always well implemented.

If the depth of the structure is known, and it will not change, you may wish to implement with separate table for each level. That does not work well though if one of the parents can also be a child. (sub-assemblies)

If the depth is not known, you will likely want to use 1+N tables (where N may be 0) and heirarchical queries. In this case you would do well to implement on 10g as it has new features for heirarchical queries.

On Mon, 10 Jan 2005 22:55:20 +0530, sanjay.khangarot_at_wipro.com <sanjay.khangarot_at_wipro.com> wrote:
> Hello All,
> I wanted to create a schema in which Parent child relationship needs to be maintained where a child can have multiple parents. Like addition of ingredients to create a final product, where the ingredients are the parents and resultant product is the child.
> How should I go to store this kind of data? My requirment also includes to explode this structure and should be able to reach up to the top most parent in the heirarchy?
> If anyone has any reference, from where I can pick this information please advise.
>
> Thanks in advance.
>
> Regards
>
> sanjay
>

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
--
http://www.freelists.org/webpage/oracle-l
Received on Mon Jan 10 2005 - 11:46:55 CST

Original text of this message

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