Tutorial Normalization - Part 2 (Q)
Tutorial Normalization - Part 2 (Q)
Tutorial Normalization - Part 2 (Q)
DATABASE
SEM 1, 2021/2022
Tutorial 8 : Normalization – Revision
Question 1
From the above table, do a normalization process from 1NF to 3NF. Express your answers in the following
format:
Question 2
StudentID, CourseID
b) Explain why this table is not in 2NF? Illustrate your explanations by using appropriate examples from
the table.
d) What is the condition for a table to be in 3NF? Normalize the table into 3NF. Explain your normalization
process using appropriate examples from the table. Show your answer in schema format ie.
TABLENAME(key, attibute….)
Conditions for a table to be in 3NF:
1. Already in 2NF
2. There is no transitive dependency
To achieve 3NF, we have to eliminate the transitive dependency. In the tables, there is a partial dependency
exist between Major and GradHours. Therefore, we have to form one more table by using the Major as the key
of table as follow:
Major(Major, GradHours)
e) If the original table shown above is not normalized, what anomalies exists for the table? Name and
explain each of the anomaly and provide suitable examples using the data given in the table.
Insertion anomalies. If only this file exists, to add a new course, one dummy student data have to be inserted to
reflect the course’s condition.
Update anomalies. If the student Azura Ali has a new StudentID, the new StudentID has to be entered in each
of the file record in which the Azura Ali’s StudentID is shown.
Deletion anomalies. If the student Azura Ali and the student Ahmad Ismail are deleted, the InfoSystems will be
deleted as well.