All mock tests are FREE till 31 December — register to save your progress
Unit 4 · Database Management Systems Paper 2 CS · June 2024 Re-Exam

Consider a relation schema R = (U, V, W, X, Y, Z), on which the following functional dependencies hold: {U → V, VW → X, Y → W, X → U}. The candidate keys of R are:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. UYZ, VYZ, XYZ

Explanation

Y and Z never appear on a right side, so both are in every key; (YZ)⁺ = {Y, Z, W}. Adding U gives V, then VW → X, so UYZ is a key. VYZ gives X then U, and XYZ gives U then V. WYZ adds nothing new. Keys: UYZ, VYZ, XYZ.

More Database Management Systems questions