Solved Normalization with sets problem
Solved Normalization with sets problem
Given:
Questions:
A key is a minimal superkey. To find the key, we need to determine the attribute closure of
combinations of attributes to see if they can determine all attributes in R.
Closure of {A}:
o {A}+ = {A, D, E, I, J}
o {A} doesn't determine all attributes.
Closure of {B}:
o {B}+ = {B, F, G, H}
o {B} doesn't determine all attributes.
Since neither {A} nor {B} alone is a key, but {A, B} is, the candidate key for the relation is
{A, B}.
2. Decompose R into 2NF and then 3NF relations:
2NF Decomposition:
3NF Decomposition:
1. R1(A, D, E)
2. R2(B, F)
3. R3(A, B, C)
4. R4(F, G, H)
5. R5(D, I, J)
These relations are now in 3NF and free of partial and transitive dependencies.