ExerciseOnNormalization_01_Spring2024_DPU [Student View]
ExerciseOnNormalization_01_Spring2024_DPU [Student View]
Just provided a short answer containing the relations with the primary key and
foreign key(s). You obviously need to draw the schema diagram(s).
# 01
Consider the following relation for published books:
BOOK (Book_title, Author_name, Book_type, List_price, Author_affil, Publisher)
The primary key of the relation is underlined. Assume that a book may be written by multiple authors and so
{Book_title, Author_name} is the primary key. Author_affil refers to the affiliation of the author.
(ii) Explain whether the relation of no (i) is in 2NF. If not, decompose it to 2NF.
Answer : No, due to having partial functional dependency.
2NF decomposition :
BOOK0(Book_title, Author_name)
BOOK1(Book_title, Book_type, List_price, Publisher)
BOOK2(Author_name, Author_affil)
(iii) Explain whether the relation of no (ii) is in 3NF. If not, decompose it to 3NF.
Answer : No, due to having transitive functional dependency.
3NF decomposition :
BOOK0(Book_title, Author_name)
BOOK1_1(Book_title, Publisher, Book_type)
BOOK1_2(Book_type, List_price)
BOOK2(Author_name, Author_affil)
Just provided a short answer containing the relations with the primary key and
foreign key(s). You obviously need to draw the schema diagram(s).
# 02
Consider the following relation:
(ii) Explain whether the relation of no (i) is in 2NF. If not, decompose it to 2NF.
Answer : No, due to having partial functional dependency.
2NF decomposition :
(iii) Explain whether the relation of no (ii) is in 3NF. If not, decompose it to 3NF.
Answer : No, due to having transitive functional dependency.
3NF decomposition :