Sie sind auf Seite 1von 2

Homework 2 (Due date: 11/12)

1.
2.
3.
4.
5.
6.

What is normalization?
When is a table in 1NF?
When is a table in 2NF?
When is a table in 3NF?
When is a table in BCNF?
The dependency diagram in Figure indicates that authors are paid royalties for each
book that they write for a publisher. The amount of the royalty can vary by author,
by book, and by edition of the book.

Figure Q6 Book royalty dependency diagram

a. Based on the dependency diagram, create a database whose tables are at least in
2NF, showing the dependency diagram for each table.
b. Create a database whose tables are at least in 3NF, showing the dependency diagram
for each table.
7. The dependency diagram in Figure indicates that a patient can receive many
prescriptions for one or more medicines over time. Based on the dependency diagram,
create a database whose tables are in at least 2NF, showing the dependency diagram for
each table.

8 Consider the attribute set R = ABCDEGH and the FD set F = {AB C, AC B, AD E, B


D, BC A, E G}.
1. For each of the following attribute sets, do the following: (i) Compute the set of dependencies
that hold over the set and write down a minimal cover. (ii) Name the strongest normal form that
is not violated by the relation containing these attributes. (iii) Decompose it into a collection of
BCNF relations if it is not in BCNF.
(a) ABC,(b)ABCD,(c)ABCEG,(d)DCEGH,(e)ACEH
2. Which of the following decompositions of R = ABCDEG, with the same set of dependencies
F, is (a) dependency-preserving? (b) lossless-join?
(a) {AB, BC, ABDE, EG }
(b) {ABC, ACDE, ADG }

Das könnte Ihnen auch gefallen