Quote:
Originally Posted by BarryWilliams
IMHO it's better to have an Address Table.
This is a 'normalised design' ...
|
but so is having address fields in each entity
my classic rejoinder for this argument is that you hardly ~ever~ see anyone designing a first names table, even though many entities are called "john" -- and yet developers are so quick to have an address table, when the amount of sharing of the same address is substantially less than people called john
you'd need a separate address table only if either (1) an entity needs more than one address (see earlier post re addresses per person), and then it's still not enough reason to have a many-to-many relationship instead of just a one-to-many relationship, or (2) there is a strong need to share a single address amongst many entities, or (3) you were interested in the addresses themselves, regardless if there was anyone or any entity at that address
Quote:
Originally Posted by BarryWilliams
... and also offer other benefits.
|
and drawbacks as well -- in your model, you need a
three-table join to find customers in a given city
