Solved

Should I use a relational design for this?

Posted on 2016-09-15
3
65 Views
Last Modified: 2016-09-15
We have two contact forms, billing and contact. I am going to store recipient emails into a database so the manager can configure who she wants to receive emails.

Should I have a table called billing and a table called contact?

Or should I have a table that stores all emails and another table with form names, with form ID being a foreign key in the emails table?

I'm also a little confused by 3NF and not sure if this design would pass 3NF.
0
Comment
Question by:burnedfaceless
3 Comments
 
LVL 39

Assisted Solution

by:lcohan
lcohan earned 250 total points
ID: 41800298
In my opinion the best is to split them and have Contact table and ContactBilling table linked by ContactId. Both would have their own PKeys and FK from Contact to ContactBilling on ContactId. This way you could build up the structure and add other tables linked to Contact as needed instead of just adding a gazillion of columns to the same Contact table.
0
 
LVL 45

Accepted Solution

by:
Kdo earned 250 total points
ID: 41800300
The database will be a lot more flexible if you'll make them separate tables.

It may be possible that the same email address is used by multiple entities.  Normalizing the email addresses into another table will allow you to update ALL billing records that use the same email address if that address ever changes.  You'll reduce the overall size of the database.


Good Luck!
Kent
0
 

Author Closing Comment

by:burnedfaceless
ID: 41800305
Thanks
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question