Candidate keys and normal form of R(A,B,C,D,E)

December 4, 2026 · Team EasyExamNotes · 2 min read (est.) · 0 comments

Share on WhatsApp

← RGPV CS-502 DBMS December 2020 solved question paper

CS-502 (CBGS) | December 2020 | Q4(b) | 7 marks

Question (restated): For R(A,B,C,D,E) with A→B, BC→E and ED→A, identify keys and highest normal form.

Answer

Attribute closure is the set of attributes functionally determined by a given set. A candidate key is a minimal superkey. C and D never appear on the right side of the supplied dependencies, so neither can be derived from other attributes. Every candidate key must contain C and D. The closure of CD is CD, which is not a superkey.

(ACD)+: Start with A,C,D. A→B adds B; BC→E adds E. Closure is ABCDE. (BCD)+: Start with B,C,D. BC→E adds E; ED→A adds A. Closure is ABCDE. (CDE)+: Start with C,D,E. ED→A adds A; A→B adds B. Closure is ABCDE.

Each set is minimal: removing C or D makes it impossible to derive that missing attribute; removing the third attribute leaves CD, which is not a superkey. Any superkey must include at least one of A,B,E in addition to CD. Therefore the complete candidate key set is ACD, BCD and CDE.

All five attributes are prime because each belongs to at least one candidate key. Assuming atomic values, the relation is in 1NF. It satisfies 2NF because there are no non-prime attributes that could be partially dependent on a candidate key. For 3NF, every nontrivial dependency X→Y with a single attribute Y must have either a superkey determinant or a prime dependent attribute. All attributes are prime, so this condition holds.

BCNF requires every nontrivial determinant to be a superkey. A+ = AB, BC+ = BCE and ED+ = ABDE; none contains all attributes. Thus BCNF is violated. The highest normal form is 3NF, under the given dependencies and atomic-value assumption.

Candidate keys and normal form of R(A,B,C,D,E)
Candidate keys and normal form of R(A,B,C,D,E) — conceptual illustration

Further reading: Silberschatz, Korth and Sudarshan, Database System Concepts.

← RGPV CS-502 DBMS December 2020 solved question paper

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion