Solved

Should I create a separte table for this?

Posted on 2011-03-10
5
183 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now