Re: Database Design Question, Normalizing
Posted by: Jay Pipes
Date: March 09, 2006 09:45AM

You almost got it correct. Given your description of your relationships, the following would be more appropriate:

CREATE TABLE Customers (
cid (PK)
, cname
, cremarks
);

CREATE TABLE Servers (
sid (PK)
, customer (FK to Customers.cid)
, sname
, mremarks
);

CREATE TABLE ServerMacs (
server (PK column 1, also FK to Servers.sid)
, mac (PK column 2)
, mremarks
);

Jay Pipes
Community Relations Manager, North America, MySQL Inc.

Got Cluster? http://www.mysql.com/cluster
Personal: http://jpipes.com

Options: ReplyQuote


Subject
Written By
Posted
Re: Database Design Question, Normalizing
March 09, 2006 09:45AM


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.