On 12/5/06, John Siracusa <[EMAIL PROTECTED]> wrote: > On 12/5/06 6:49 PM, Clayton Scott wrote: > > CREATE TABLE club (id serial PRIMARY KEY, name text); > > CREATE TABLE person (id serial PRIMARY KEY, name text); > > CREATE TABLE position (id serial PRIMARY KEY, name text); > > > > CREATE TABLE company_person_map ( > > club integer not null REFERENCES club (id), > > person_id integer not null REFERENCES person (id), > > position_id integer not null REFERENCES position (id), > > ); > > What is the primary key on company_person_map?
Ooops. ALTER TABLE club_person_position_map ADD CONSTRAINT pkclub_person_position_map PRIMARY KEY (club_id, person_id, position_id); > Why does company_person_map contain a reference to a club? Cut and paste error in the table name. -- Clayton Scott [EMAIL PROTECTED] ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object