Course 1 Module 11 Lesson 5
Course 1 Module 11 Lesson 5
Module 11
Normalization Concepts and Practice
Problem requirements
• Specify one insert, update, and deletion anomaly
• Each anomaly should involve student representation
in the table.
Problem solution
• Insertion anomaly: cannot insert a student (S3)
unless an OfferNo is provided.
• Update anomaly: must change multiple rows if S1
moves to a different city.
• Deletion anomaly: deleting third row also removes
details about offering O3 and course C3. 4
Problem requirements
• List possible FDs with StdCity as determinant (LHS)
• Identify at least one falsification if it exists for each
FD
o Pair of sample rows for an FD falsification
o Same LHS (determinant) value in each row but a different
RHS value
5
FD Falsification List
FD Falsifications
StdCity OfferNo (1,2), (3,4)
StdCity OffTerm (3,4)
StdCity EnrGrade ?, ?
StdCity CourseNo ?, ?
StdCity CrsDesc ?, ?
StdCity OffYear ?, ?
StdCity StdNo None
StdCity StdClass ?,?
6
Offers
Interviewer
InterviewerID Company
Name
WorksFor CompID
Phone
CompName
Email
Problem requirements
• Convert the ERD into tables using the conversion rules
• For each table, list FDs and split if the table violates BCNF.
7
Identifying
• CompPos.PosId (PK)
relationship
• CompPos.CompId (PK)
rule
8
10