Candidate keys and highest normal form worked example

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

Share on WhatsApp

← RGPV CS-502 DBMS November 2023 solved question paper

RGPV CS-502 (GS) | November 2023 | Q5(a) | 7 marks

Question (restated): For R(A,B,C,D,E,F) with A→BC, C→E, E→F and F→AB, determine candidate 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 set whose closure contains every attribute of the relation. D does not occur on any right-hand side, so every candidate key must contain D. B cannot initiate any dependency.

Set Closure
A A B C E F
C C E F A B
E E F A B C
F F A B C E
D D
AD, CD, ED, FD A B C D E F (each)

For AD, start with A,D; A→BC adds B,C; C→E adds E; E→F adds F. The closure is the entire relation. Removing A or D prevents full closure. The same reasoning applies to CD, ED and FD. No other minimal key exists because any key must include D and at least one of A,C,E,F; adding B cannot replace these attributes.

Candidate keys are AD, CD, ED and FD. Prime attributes are A,C,D,E,F. B is non-prime. Assuming atomic attribute values, the relation is in first normal form. It violates second normal form because A→B is a dependency of non-prime B on a proper subset of candidate key AD. F→B similarly violates 2NF for FD. Therefore the highest normal form is 1NF.

The relation also fails BCNF because A is not a superkey: A cannot determine D. It fails 3NF because A→B has a non-superkey determinant and a non-prime dependent. Checking only a single chosen primary key would be insufficient; normal forms must consider all candidate keys.

Further reading: Silberschatz, Korth and Sudarshan, Database System Concepts; Elmasri and Navathe, Fundamentals of Database Systems.

← RGPV CS-502 DBMS November 2023 solved question paper

Discussion

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

Sign in to participate in the discussion.

Join the discussion