Professional Documents
Culture Documents
I'll Find My Way Back in
I'll Find My Way Back in
The table shown below displays the details of the roles played by actor/actresses in
films.
F1100 Happy Jim Alan A1020 Sheila Toner Sil Simson 22.56
Days
F1109 Snake Sue A1567 Steve Tim Rosey 19.56
Bite Ramsay McDonald
Sue A1222 Peter Watt Archie 10.44
Ramsay Bold
a) Identify the primary key, and then describe and illustrate the process of
normalization by converting the table to Third Normal Form (3NF),
1NF
Partial Dependency
FilmNo -> FTitle, Director
ActorNo -> AName
Full Dependency
(FilmNo, ActorNo, Role) -> TimeOnScreen
2NF
Film
FilmN FTitle Director
o
Actor
Actor AName
No
TimeOnScreen
This study source was downloaded by 100000822046281 from CourseHero.com on 05-10-2023 08:15:42 GMT -05:00
https://www.coursehero.com/file/41692638/Normalization-Exercise1-Answer2doc/
FilmN Actor Role TimeOnScr
o No een
Transitive Dependency
No Transitive Dependency
3NF
No new table because there is no Transitive Dependency
3NF same as 2NF
Insertion anomaly:
We cannot add a new actor record unless the new actor plays at least one role in a film.
The primary key of this table is (FilmNo, ActorNo, Role). FilmNo and Role cannot have
null value.
Update anomaly:
If film F1100 Happy Days’ director is changed, we need to update three rows.
Deletion anomaly:
If row 4 record is deleted, the actor A1567, Steve McDonald details will be removed
indirectly. We cannot find his record anymore.
Question 2
Figure 1 shows a table of student residence data. Assume that the primary key of this
relation is MatricNo. There’s no doubt that this table contains redundancy as exhibited
by the value of CollegeLocation and CollegeCost. Base from your basic
understanding of the normalization process, transform this table to Third Normal Form
(3NF).
Student-College
MatricNo StudentName CollegeName CollegeLocation CollegeCost
This study source was downloaded by 100000822046281 from CourseHero.com on 05-10-2023 08:15:42 GMT -05:00
https://www.coursehero.com/file/41692638/Normalization-Exercise1-Answer2doc/
1NF
MatricNo StudentName CollegeName CollegeLocation CollegeCost
Partial Dependency
No Partial Dependency because these is No Composite Primary Key.
Full dependency
MatricNo -> StudentName, CollegeName, collegeLocation, CollegeCost
2NF
No new table because there is no Partial Dependency.
Transitive Dependency
CollegeName -> CollegeLocation, CollegeCost
3NF
CollegeName CollegeLocation CollegeCost
Question 1
This study source was downloaded by 100000822046281 from CourseHero.com on 05-10-2023 08:15:42 GMT -05:00
https://www.coursehero.com/file/41692638/Normalization-Exercise1-Answer2doc/
Question 2
This study source was downloaded by 100000822046281 from CourseHero.com on 05-10-2023 08:15:42 GMT -05:00
https://www.coursehero.com/file/41692638/Normalization-Exercise1-Answer2doc/
Powered by TCPDF (www.tcpdf.org)