- 1 VMware Takes the Wraps Off vRealize Automation and vRealize Business
- 2 Microsoft Previews Hyper-V Containers for Windows Server 2016
- 3 Mirantis Led FUEL Project Gets Installed Under OpenStack Big Tent
- 4 Red Hat Enterprise Linux 7.2 Adds Security, DR Features
- 5 Docker Reaches Across Universes at Dockercon EU
Database Normalization Page 2
Second Normal Form requires that any non-key field be dependent upon the entire key. For example,
consider the StudentCourses table below, where StudentID and
CourseID form a compound primary key.
The Student Name field does not depend at all on CourseID, but only on Student ID. CourseLocation has be dependency on StudentID, but only on CourseID.
This data should be split into three tables as follows:
Student Courses Table
In this example, grade was the only field dependent on the combination of StudentID and CourseID.
suppose that in the first table design, the first row of data was
entered with a StudentName of Aprok, a simple typo. Now, suppose the
following SQL is run.
Delete from StudentCourses where StudentName="April"
The erroneous "Aprok" row will not be deleted. However, in the final design, using the following SQL:
Delete From StudentCourses where StudentID=12345
Original date of publication, 02/21/2001