Re: Help with database schema for e-commerce paint shop
Posted by: Peter Brawley
Date: December 08, 2010 11:24AM

Quote

But what would be the benefit of having the address information in it's [sic] own table?

People have multiple addresses, they share addresses, &c.

Quote

how do you decide when to use composite primary keys and when to just make the surrogate auto-incrementing INT value the lone primary key?

Use a surrogate key when it is the only or cleanest way to ensure that the PK will not be affected by changes in the real world.

PB

Options: ReplyQuote




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.