Re: design - Mailing list pgsql-general

From KuroiNeko
Subject Re: design
Date
Msg-id 3A76F1F0.nail10S1HDIR0@ed.ed
Whole thread Raw
In response to design  (Jeff <jeff4e@rochester.rr.com>)
List pgsql-general
> Each user can have up to 4
> different mailing address. Is it better to have all this information in
> one table. Or is it better to have a user table and an address table,
> and have the user id as a foreign key in the address table?

 It's even possible (recommended by the  books) to have separate tables for
streets, cities, states, countries etc.  However, normalisation up to, say,
4NF  ain't easy  to implement  and  support. I'd  also apprectiate  someone
sharing real life experience.
 As  to your  particular problem,  I'd definitely  start with  having users
separated from addresses.  Especially if the database  would complicate and
other user info is likely to be stored in your DB.


--

 ������������������


pgsql-general by date:

Previous
From: "Brett W. McCoy"
Date:
Subject: Re: design
Next
From: "Adam Lang"
Date:
Subject: Re: design