Re: Parts explosion with repeated subtrees
Date: 17 Dec 2002 12:54:33 -0800
Message-ID: <c0d87ec0.0212171254.c85b718_at_posting.google.com>
Actually, your code is so proprietary I had a hard time reading it; is
this what you meant to post, if you used ISO-11179 specs, had keys,
constraints, etc. ?
CREATE TABLE Menu
REFERENCES Menu(menu_id),
What I want is a way for them to appear once in the schema and
expanded in a VIEW as tehy are used.
(menu_id INTEGER NOT NULL PRIMARY KEY,
item VARCHAR(25) NOT NULL,
parent_id INTEGER NOT NULL
level_id INTEGER NOT NULL);
INSERT INTO Menu VALUES (1,'Eggs Benedict', 0, 1);
INSERT INTO Menu VALUES (2, 'English Muffin', 1, 2);
INSERT INTO Menu VALUES (3, 'Canadian Bacon', 1, 2);
INSERT INTO Menu VALUES (4, 'Egg', 1, 2);
INSERT INTO Menu VALUES (5, 'Béarnaise sauce', 1, 2);
INSERT INTO Menu VALUES (6, 'Dill', 5, 3);
INSERT INTO Menu VALUES (7, 'Hollandaise sauce', 5, 3);
INSERT INTO Menu VALUES (8, 'Egg', 7, 4);
INSERT INTO Menu VALUES (9, 'Lemon Juice', 7, 4);
INSERT INTO Menu VALUES (10, 'Butter', 7, 4);