40 40 votes Consider a relation R with five attributes $V, W, X, Y,$ and $Z.$ The following functional dependencies hold: $VY→ W, WX → Z,$ and $ZY → V.$ Which of the following is a candidate key for $R?$ $VXZ$ $VXY$ $VWXY$ $VWXYZ$ Databases gateit-2006 databases database-normalization normal + – Ishrat Jahan 10.3k views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply vupadhayay commented Nov 28, 2017 reply Follow flag Can i Say by transitive property answer is B? If we check XYV it cannot derive Z but it can derive XYVW. XYVW can derive XYVWZ hence we can say that XYV --> XYVW and XYVW --> XYVWZ hence XYV --> XYVWZ? 0 0 replyShare Puja Mishra commented Jan 19, 2018 reply Follow flag Candidate key ... Minimal Super key ..... 0 0 replyShare ritiksri8 commented Oct 18, 2024 reply Follow flag No need to check larger sets or supersets if a proper subset has already been determined to be a candidate key. 1 1 replyShare Please log in or register to add a comment.
Best answer 44 44 votes As we can see attributes $X$ and $Y$ do not appear in the RHS of any FD and so they need to be part of any super/candidate key. So, candidate keys are: $VXY, WXY, ZXY$ as these three can determine any other attribute where as a proper subset of any of them cannot determine all other attributes.$VXZ$ is not a super key as $Y$ is not there where as $VWXY$ and $VWXYZ$ are super keys but since their proper subsets are also super keys they are not candidate keys.The answer is B. Pooja Palod answered Nov 8, 2015 • edited Nov 26, 2024 by Hira Thakur Pooja Palod comment Share Follow See all 3 Comments 3 3 Comments reply Arjun commented Nov 9, 2015 reply Follow flag V is on rhs :) 3 3 replyShare Pooja Palod commented Nov 9, 2015 reply Follow flag Edited:) 0 0 replyShare prithatiti commented Apr 5, 2020 reply Follow flag VWXY and VWXYZ are super keys. 0 0 replyShare Please log in or register to add a comment.
6 6 votes As we can see that w z and v can be generated from the given functional dependencies and there is no way we can generate X and Y therefore X and Y must be the part of candidate key: so, xy+ = xy & vxy + = vxywz So it turns out vxy is the key, ie. option (b) and so option c and d are super keys. Nit9 answered Nov 25, 2015 Nit9 comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Given Relation Schema R(V, W, X, Y, Z)VY---->WWX---->ZZY---->VShort Trick= The attributes which are not present on RHS of a relation are part of Candidate Keys here WZV present on R.H.S of a Relation but X,Y not present on R.H.S So XY Must be part of CK.Find Closure of XY = XY Since From XY we cannot find all attributes so check remaining attributes with XY Closure of XYV = XYVWZ All Attributes came from XYV So it is CKClosure of XYW = XYWZV All Attributes came from XYW So it is CKClosure of XYZ =XYZVW All Attributes came from XYZ So it is CKDont check with 4 attributes bec 4 atributes are superset of above CK So they are not CKNow check optiona- VXZ WRONG XY not present here b- VXY RIGHT c- VWXY WRONG it is SK not CKd- VWXYZ WRONG it is SK not CK akshay_123 answered Jun 25, 2025 akshay_123 comment Share Follow 0 reply Please log in or register to add a comment.