Exercises DB Normalization
Exercises DB Normalization
which is given as representative of all the functional dependencies which are valid in this
relation :
Country
c1 n1 p1
c1 n2 p2
c2 n3 p2
c3 n3 p5
c4 n4 p1
c1 n5 p5
c6 n6 p5
1. Give all the valid functional dependencies (FDs) from this instance of Country.
2. Draw the minimum dependency graph.
3. Give all the candidate primary keys.
4. Give the most normal form of Country. Justify your answer.
5. Show that the decomposition of Country in
Country1(currency, country-name) and Country2(country-name, president)
does not preserve the FDs.
6. Propose, as necessary, a correct decomposition of Country in 3NF.
Question 2:
1. Consider the schema R(A,B,C,D) and the functional dependencies:
FD1: {A B; B C; C D}
FD2: {A B; B C; A D; D C; C E}
A B C D E
R
a b c u e
a b c u e
x b c d e