← RGPV CS-502 DBMS November 2022 solved question paper
RGPV CS-502 (GS) | November 2022 | Q5(a) | 7 marks
Question (restated): Find the candidate key and highest normal form for R(E,F,G,H), with E→F, F→G and H→G.
Answer

Attribute closure is the set of attributes determined by an attribute set under the given functional dependencies. A candidate key is a minimal set whose closure contains every attribute of the relation.
Step 1: Find mandatory attributes
E and H never occur on the right side of any dependency. Therefore neither can be derived from other attributes, and both must appear in every candidate key.
Step 2: Compute closures
| Set | Closure |
|---|---|
| E | E,F,G |
| H | H,G |
| EH | E,H,F,G |
Starting with EH, E→F adds F, then F→G adds G. H→G also derives G. The closure is the entire relation. Neither E nor H alone is a superkey, so EH is minimal and is the only candidate key.
Step 3: Determine normal form
Assuming atomic attribute values, the relation is in 1NF. Prime attributes are E and H; non-prime attributes are F and G. E→F and H→G are partial dependencies because E and H are proper subsets of the composite key. Consequently the relation violates 2NF and cannot satisfy 3NF or BCNF.
Final answer: Candidate key = {E,H}; highest normal form = 1NF, assuming atomic values.
A possible lossless dependency-preserving decomposition is EF, FG, HG and EH. Each original dependency is represented in one relation, and EH retains the original key association.
Further reading: Silberschatz, Korth and Sudarshan, Database System Concepts.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion