?
Solved

Should I create a separte table for this?

Posted on 2011-03-10
5
Medium Priority
?
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 32

Expert Comment

by:Ephraim Wangoya
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:
Ephraim Wangoya earned 1600 total points
ID: 35101978

Correct
0
 
LVL 29

Assisted Solution

by:Paul Jackson
Paul Jackson earned 400 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

718 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