Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Eliminating Combinatorial Relationship Multiplication
>> Just wanted to double check: by "separating the nodes from the
tree" do you mean doing this (using path enumeration model): <<
Where is the DDL? What you posted was useless on several levels. NEVER use something as vague as "id" for a column name. NEVER, NEVER, NEVER name a data element for its current location -- node_id always a node_id wherever it appears. This is fundamental data modeling -- name thing s for what they are in the logical model, not for how or where they are PHYSICALLY stored or how they are used in one place.
I think that you might have meant this:
CREATE TABLE Nodes
(node_id INTEGER NOT NULL PRIMARY KEY,
node_name CHAR(20) NOT NULL,
... );
CREATE TABLE Tree
(node_id INTEGER NOT NULL
REFERENCES Nodes (node_id) ON UPDATE CASCADE ON DELETE CASCADE, path VARCHAR(100) NOT NULL CHECK (<< valid path predicate >>),.. );
Now you need to decide how to handle DRI actions; I made a guess. And how you want to build the path string - letters, digits, fixed or variable substring components, etc. Received on Fri Jul 02 2004 - 10:40:16 CDT
![]() |
![]() |