DB Normalization
DB Normalization
● Overview
– Definition of database normalization
– Why normalize?
– Problems
● no need to repeatedly store the class time and
professor ID
● redundancy introduces the possibility for error (Matj
148)
Database Normalization
● First Normal Form
– calls for the elimination of repeated groups of
data by creating separate tables of related data
– Student information:
StudentID StudentName Major college collegeLocation
– Class information:
StudentID ClassID ClassName
– Professor Information:
ProfessorID ProfessorName
Database Normalization
● Second Normal Form
– Elimination of redundant data
● Example data in Class Information:
studentID classID className
134-56-7890 M148 Math 148
123-45-7894 P113 Physics 113
534-98-9009 H151 History 151
134-56-7890 H151 History 151
New Design:
Student Enrollment Class
studentID studentName Major studentID classID ClassID ClassName ProfessorID
College Professor
major college collegeLocation ProfessorID ProfessorName
Database Normalization
● Questions?
Normalization Assignment
● For your tool:
– Compile list of all data items used