Solved

Should I create a separte table for this?

Posted on 2011-03-10
5
213 Views
Last Modified: 2012-05-11
Trying to adhere to the normalization rule in cleaning up and re-design this database.  If I have a history table that has a history_Type column that currently stores varchar of the type.  Should I create a new table as History_Type with HistoryTypeId primary key as identity column and the a 2nd column as Type_Name as varchar.  Then change the History table to hold the HistoryTypeId  instead?  Thanks.
0
Comment
Question by:lapucca
  • 2
  • 2
5 Comments
 
LVL 32

Expert Comment

by:ewangoya
ID: 35101926

You are exactly correct.
That will be the best way to go about it.
0
 

Author Comment

by:lapucca
ID: 35101967
So, by implementing it this way, is this conforming to NF2?  thanks.
0
 
LVL 32

Accepted Solution

by:
ewangoya earned 400 total points
ID: 35101978

Correct
0
 
LVL 29

Assisted Solution

by:Paul Jackson
Paul Jackson earned 100 total points
ID: 35101980
The reason why this would probably be a good idea is if you wanted to retrieve items from the history table based on the historytypeid as it will improve performance.
As for normilization rules moving this in to a separate table conforms with 2NF mormalization rule : Remove subsets of data that apply to multiple rows of a table and place them in separate tables.

0
 

Author Closing Comment

by:lapucca
ID: 35102020
Thank you both.  Jacko, thank you for the detail infro.  Since ew has answered both my questions hence I'm spliting up the points this way.  But I appreciate both your help.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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