| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: BOOLEAN RELATIONSHIPS: HARD QUESTION
>> We build machines and so we have a part list of the components. I
have created a model of the machine in which there is a list of
components to be filled in order to complete the design scheme. Every
machine will be composed by:
1 mandatory element of type "A" among the entire list of A type items 1 mandatory element of type "B" among the entire list of B type items 4 mandatory element of type "C" among the entire list of C type itemsN optional element of type "D" among the entire list of D type items
The problem is this. When you choose a specific element to fill the
type "A"
box you can't then choose among all the items of list B to fill the
type B
box but among those B elements that matches the selected A items. <<
Here is the link on Amazon.com for my new book on "Trees & Hierarchies in SQL"
You can make "the machine" the root, the second level is the "A" parts (with one child); the third level is the "B" parts (with 4 children); etc. The valid configurations are paths in the tree from the root to leaf nodes. Look up the nested set model. Received on Mon Jun 14 2004 - 21:16:56 CDT
![]() |
![]() |