Professional Documents
Culture Documents
Mark:
Date Received :
https://www.coursehero.com/file/32327750/assignment-9docx/
XIAMEN UNIVERSITY MALAYSIA
I/We hereby understand my/our work would be checked for plagiarism or other
misconduct, and the softcopy would be saved for future comparison(s).
I/We hereby confirm that all the references or sources of citations have been correctly
listed or presented and I/we clearly understand the serious consequence caused by any
intentional or unintentional misconduct.
This work is not made on any work of other students (past or present), and it has not
been submitted to any other courses or institutions before.
https://www.coursehero.com/file/32327750/assignment-9docx/
XIAMEN UNIVERSITY MALAYSIA
Assignment 9
14.25. R = {A, B, C, D, E, F, G, H, I, J}. Repeat Exercise 14.24 for the following different
set of functional dependencies G = {{A, B}→{C}, {B, D}→{E, F}, {A, D}→{G, H},
{A}→{I}, {H}→{J}}.
Since {H} → {J} then {A, D} → {J}. Thus, {A, B, D} → {A, B, D, J}.
So {A, B, D} is a key.
2NF
R1 (A, B, C)
R2 (B, D, E, F)
R3 (A, D, G, H, J)
R4 (A, I)
3NF
R1 (A, B, C)
R2 (B,D, E, F)
R3.1 (A, D, G, H)
R4 (A, I) R3.2 (H, J)
https://www.coursehero.com/file/32327750/assignment-9docx/
XIAMEN UNIVERSITY MALAYSIA
b. Apply normalization until you cannot decompose the relations further. State
the reasons behind each decomposition.
2NF decomposition:
Book0(Book_title, Author_name)
Book1(Book_title, Publisher, Book_type, List_price)
Book2(Author_name, Author_affil)
This decomposition eliminates the partial dependencies.
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)
This decomposition eliminates the transitive dependency of List_price.
https://www.coursehero.com/file/32327750/assignment-9docx/
XIAMEN UNIVERSITY MALAYSIA
b. Justify that this relation has the MVD {Book} →→ {Author} | {Edition,
Year}.
https://www.coursehero.com/file/32327750/assignment-9docx/
XIAMEN UNIVERSITY MALAYSIA
Cities_visited and Cards_used may repeat for particular Start_date or Trip_id. Cities_visited
and Cards_used are independent of each other and they also have multiple values. Also, both
Cities_visited and Cards_used are dependent on Trip_id and Start_date, so the MVDs present
in the relation are as follows:
https://www.coursehero.com/file/32327750/assignment-9docx/
Powered by TCPDF (www.tcpdf.org)