GATE / CS ARCHIVE

GATE CSE 2000 / QUESTION 2.24

Dependencies holding on a displayed instance

Database Management Systems · Functional Dependencies & Keys · Full GATE CSE 2000 paper

GATE 2000, Q2.24 2 marks · MCQ
Report issue

Functional Dependencies & Keys

Question 2.24, GATE 2000: Rows(X,Y,Z) are(1,4,2),(1,5,3),(1,6,3),(3,2,2). Which pair holds: XY→Z and Z→Y; YZ→X and Y→Z; YZ→X and X→Z; XZ→Y and Y→X?
Question 2.24, GATE 2000: Rows(X,Y,Z) are(1,4,2),(1,5,3),(1,6,3),(3,2,2). Which pair holds: XY→Z and Z→Y; YZ→X and Y→Z; YZ→X and X→Z; XZ→Y and Y→X?
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step 1: Every Y value in the four rows is distinct. Hence Y uniquely identifies the entire row in this instance, so Y→Z and Y→X hold. Adding Z to Y cannot destroy uniqueness, so YZ→X also holds.

Step 2: Z→Y fails because Z=2 occurs with Y=4 and 2. X→Z fails because X=1 occurs with Z=2 and 3. XZ→Y fails because(X,Z)=(1,3) occurs with Y=5 and 6.

Thus only the conjunction in B holds. These are instance-level observations, not an inference that the same FDs constrain every possible future instance.

Original paper, page 6