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

Home -> Community -> Usenet -> comp.databases.theory -> Re: Design for Category Feature

Re: Design for Category Feature

From: David Portas <REMOVE_BEFORE_REPLYING_dportas_at_acm.org>
Date: 14 Oct 2005 07:39:25 -0700
Message-ID: <1129300765.422742.41660@g44g2000cwa.googlegroups.com>


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

Original text of this message

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