Re: Database Design - how to design table
Posted by: Joe Celko
Date: January 03, 2007 12:45PM

CREATE TABLE EventHistory
(player_name CHAR(25) NOT NULL,
sport_name CHAR(25) NOT NULL,
event_year INTEGER NOT NULL,
PRIMARY KEY (player_name, sport_name, event_year),
sport_score INTEGER NOT NULL,
etc.);

Look up multi-column keys in any book on SQL.

Options: ReplyQuote


Subject
Written By
Posted
Re: Database Design - how to design table
January 03, 2007 12:45PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.