Normalization Example
Normalization Example
Example
Normalization - Student Example The following table depicts the set of attributes found in a University database:
Student -No 001 StudentName Smith CourseCode A203 CourseLength (yrs) 3 UnitCode U45 U87 U86 U45 U25 U12 U46 U12 U86
Unit-Name
Databases II Programming Algorithms Databases II Business I Business II Databases I Business II Algorithms
Lecturer
Brown Green Purple Brown Red Pink Orange Pink Purple
003
Soap
A104
007
Who
A203
010
Lemon
A323
Notes: A student attends one course and can take any units during the course. A unit may be presented as part of any course and is always given by one particular lecturer. You are required to show the first, second and third normal forms.
Student -No 001 001 003 003 003 007 007 010 010
StudentName Smith Smith Soap Soap Soap Who Who Lemon Lemon
CourseCode A203 A203 A104 A104 A104 A203 A203 A323 A323
CourseLength (yrs)
3 3 4 4 4 3 3 2 2
UnitCode U45 U87 U86 U45 U25 U12 U46 U12 U86
Unit-Name Databases II Programming Algorithms Databases II Business I Business II Databases I Business II Algorithms
Lecturer Brown Green Purple Brown Red Pink Orange Pink Purple
BACK
So, to begin the normalization process, we start by moving from zero normal form to 1st normal form.
The definition of 1st normal form there are no repeating groups all the key attributes are defined
it includes no partial dependencies (where an attribute is dependent on only a part of a primary key).
It contains no transitive dependencies (where a non-key attribute is dependent on another nonkey attribute).
There are other normal forms Boyce-Codd normal form, and 4th normal form, but these are very rarely used for business applications. In most cases, tables in 3rd normal form are already in these normal forms anyway.