GATE / CS ARCHIVE

GATE CSE 2021 SET 2 / QUESTION 40

GATE CSE 2021 Set 2 Q40

Database Management Systems · Functional Dependencies & Keys · Full GATE CSE 2021 Set 2 paper

GATE 2021 Set 2, Q40 2 marks · MSQ
Report issue

Functional Dependencies & Keys

Question 40, GATE 2021: On U(P,Q,R,S,T), dependencies P→QR and RS→T hold. Which follow? A PS→T; B R→T; C P→R; D PS→Q.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A; C; D

Step through it (4 parts)

P→QR gives P→R and P→Q by decomposition. With PS, derive R and retain S, then RS→T gives PS→T; also PS→Q follows by augmentation and decomposition. Starting only from R yields closure{R}, so R→T is not implied. Therefore A, C, D.

Attribute closure of PS starts {P,S}, then adds Q,R using P→QR, then T using RS→T, giving all five attributes. Closure of P is {P,Q,R}, and closure of R is only {R}. The latter is a complete test of nonimplication: no listed dependency can fire from R alone, so S cannot be conjured merely because it appears beside R in RS→T.

Original paper, page 78 · Answer key