Solved

Should I use a relational design for this?

Posted on 2016-09-15
3
66 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:
Kent Olsen 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
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…
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…

809 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