Normalization & Decomposition

Answer & solution
Official answer: C, D
Step through it (2 parts)
For 3NF, every nontrivial dependency X→Y must have X a superkey or each right-hand attribute prime, meaning it belongs to some candidate key. Identify the keys before applying this test.
In R1, A and D never appear on any right-hand side, so neither can be obtained from other attributes and every key must contain both. Compute (AD)+: start with A,D; D→E adds E; EA→B adds B; EB→C adds C. Thus AD determines all five attributes and is the unique candidate key. Only A,D are prime. The dependency D→E violates 3NF: D+=DE is not a superkey and E is nonprime. Hence R1 is not in 3NF.
In R2, C never appears on a right-hand side and must belong to every key. C→A, followed by A→D and A→B, gives C+=ABCD, so C alone is the unique candidate key. A is not a superkey, since A+=ABD lacks C, and D,B are nonprime. Either A→D or A→B therefore violates 3NF. R2 is not in 3NF either. Select C,D.








