Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Databases General > Re: design ques...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 3126 of 3234
Post > Topic >>

Re: design question

by Post.Philipp@[EMAIL PROTECTED] Mar 20, 2008 at 03:15 AM

Hi,

This is called normalization. Imagine a table with Persons and their
Addresses. If you just create separate columns HomePhone, WorkPhone,
CellPhone1, CellPhone2 you will certainly come to a point where
somebody does have three cell phones. Where to store that then? Always
creating new columns is a design you would apply for a Spreadsheet but
a database has a totally different concept. You would also run into a
complete nightmare when you try to query such spreadsheet design
data.

You would be better if you create a separate table PhoneNumbers and
have columns like PhoneType and PhoneNumber.

Zip codes might not require a separate table if you just want to store
one by address, but as you did not gave more specs it is difficult to
comment on this.

brgds

Philipp Post
 




 2 Posts in Topic:
design question
dba <someone@[EMAIL PR  2008-03-19 20:21:58 
Re: design question
Post.Philipp@[EMAIL PROTE  2008-03-20 03:15:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 22:19:36 CDT 2008.