UGC-NET Oct 2020 · ER-Model

MCQ · 2 marks · Problem DBMS-RELM-0032

Consider a relational schema $S=(U,V,W,X,Y,Z)$ on which the following functional dependencies hold: $(U \rightarrow V, VW \rightarrow X, Y \rightarrow W, X \rightarrow U)$ Which are the candidate keys among following options?
  1. A
    $UY, VY$
  2. B
    $UY, VY, XY$
  3. C
    $UYZ, VYZ, VWZ$
  4. D
    $UYZ, VYZ, XYZ$

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solution\(Y\) and \(Z\) never appear on a right side, so every key contains \(YZ\). We have \((YZ)^+=YZW\), so one of \(U, V, X\) must be added.\[(UYZ)^+:\ U\to V,\ Y\to W,\ VW\to X\ \Rightarrow\ \text{all}.\]\[(VYZ)^+:\ Y\to W,\ VW\to X,\ X\to U\ \Rightarrow\ \text{all}.\]\[(XYZ)^+:\ X\to U,\ U\to V,\ Y\to W\ \Rightarrow\ \text{all}.\]Each of these is minimal, since \(YZ\) alone is not a key. (A) and (B) omit \(Z\); (C) \(VWZ\) omits \(Y\).Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com