Download the authoritative guide: Data Center Guide: Optimizing Your Data Center Strategy
Download the authoritative guide: Cloud Computing: Using the Cloud for Competitive Advantage
|SWatch Reader Favorite! A poor database design can cripple an application, producing problems with data redundancy, accuracy, consistency and concurrency. Normalization reduces, if not eliminates, these problems.|
First, normal forms requires there be no multi-valued attributes, and no repeating groups. A multi-valued attribute would contain more than one value for that field in each row.
Consider the following StudentCourses table:
In this table, the Course field is a multi-valued attribute. There is not a single value for each field.
Now, consider this StudentCourses table:
The Course1, Course2, Course3 fields represent repeating groups.
proper way to store this data follows. First Normal form is
In the first two designs, selecting students that are enrolled in a certain course is difficult. Say I want to do the following:
Tell me all of the students enrolled in course 3100. In the first design, you'll have to pull all of the course data and parse it somehow. And in the second design, you'll have to check 3 different fields for course 3100. In the final design, a simple Select StudentID from StudentCourses where Course=3100.
Original date of publication, 02/21/2001
IT Solutions Builder TOP IT RESOURCES TO MOVE YOUR BUSINESS FORWARD
Which topic are you interested in?
What is your company size?
What is your job title?
What is your job function?
Searching our resource database to find your matches...