HW12 Normalization Solution-1
HW12 Normalization Solution-1
Additional notes:
‐ A book is published by one publisher and belongs to one book type, but may have multiple authors.
‐ All books of the same type have the same list price.
‐ Each author may have a single affiliation.
a) List all reasonable functional dependencies that apply to attributes in this schema (F); use textual
representation or a functional dependency diagram. Hint: there are 3 FDs.
b) Identify the candidate key(s).
c) Determine if book schema is BCNF and explain your conclusion.
d) If book schema is not BCNF, then decompose to BCNF.
At the end, list all the schemas that book has been decomposed into, with their PKs underlined.
ANSWER:
d) Decomposition of book:
‐ First decompose book to eliminate book_type → list_price, into:
book_type (book_type, list_price) is BCNF
and
book_1 (book_title, author_name, book_type, author_affiliation, publisher)
‐ book_1 is not BCNF. Decompose to eliminate author_name → author_affiliation, into
author (author_name, author_affiliation) is BCNF
and
book_2 (book_title, author_name, book_type, publisher)
‐ book_2 is not BCNF. Decompose to eliminate book_title → publisher, book_type, into
book_info (book_title, publisher, book_type) is BCNF
and
book_authorship (book_title, author_name) is BCNF