| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Design for Category Feature
I don't understand what "CATEGORY_ID" is in your model. I would have
expected to see this (SQL):
CREATE TABLE person_category (category_id INTEGER NOT NULL REFERENCES categories (category_id), person_id INTEGER NOT NULL REFERENCES persons (person_id), PRIMARY KEY (category_id,person_id));
Why would you need a third column?
-- David Portas SQL Server MVP --Received on Fri Oct 14 2005 - 09:39:25 CDT
![]() |
![]() |