GateAI
Integrity Constraints and Normal Forms

GATE CSE 2021 Set 2 · Q40

MSQ2 marksEasy

Time

Suppose the following functional dependencies hold on a relation UU with attributes P,Q,R,SP, Q, R, S, and TT: P→QRRS→T \begin{aligned} P &\rightarrow QR RS &\rightarrow T \end{aligned} Which of the following functional dependencies can be inferred from the above functional dependencies?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: A) PS → T; C) P → R; D) PS → Q

Integrity Constraints and Normal Forms

To check which functional dependencies (FDs) X→YX \rightarrow Y can be inferred, we compute the attribute closure X+X^+ with respect to the given set of FDs:

  1. Check PS→TPS \rightarrow T and PS→QPS \rightarrow Q (Options A and D):

    • Initial closure: (PS)+={P,S}(PS)^+ = \{P, S\}

    • Applying P→QRP \rightarrow QR: (PS)+={P,Q,R,S}(PS)^+ = \{P, Q, R, S\}

    • Applying RS→TRS \rightarrow T: since {R,S}⊆(PS)+\{R, S\} \subseteq (PS)^+, we add TT, giving (PS)+={P,Q,R,S,T}(PS)^+ = \{P, Q, R, S, T\}

    • Since T∈(PS)+T \in (PS)^+, PS→TPS \rightarrow T holds (Option A is correct).

    • Since Q∈(PS)+Q \in (PS)^+, PS→QPS \rightarrow Q holds (Option D is correct).

  2. Check R→TR \rightarrow T (Option B):

    • Initial closure: R+={R}R^+ = \{R\}

    • No functional dependency can be applied since RS→TRS \rightarrow T requires both RR and SS.

    • Thus, R+={R}R^+ = \{R\}. Since T∉R+T \notin R^+, R→TR \rightarrow T cannot be inferred (Option B is incorrect).

  3. Check P→RP \rightarrow R (Option C):

    • From P→QRP \rightarrow QR, by Armstrong's Decomposition Rule (or using P+={P,Q,R}P^+ = \{P, Q, R\}), P→RP \rightarrow R holds (Option C is correct).

Therefore, the correct options are A, C, and D.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Integrity Constraints and Normal Forms previous year question is Q40 of the GATE CSE 2021 Set 2 paper. Find more GATE CSE PYQs on Integrity Constraints and Normal Forms in Databases, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Integrity Constraints and Normal Forms PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Integrity Constraints and Normal Forms in GATE CSE

Integrity Constraints and Normal Forms has 30 GATE CSE PYQs across 20 papers from 2011 to 2026. 4 of them are 2-mark MSQs like this one, and GATE CSE 2021 Set 2 has 2.

How GATE tests Integrity Constraints and Normal Forms

More from GATE CSE 2021 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2021 Set 2 · Q40 · MSQ

Suppose the following functional dependencies hold on a relation U with attributes P, Q, R, S, and T: P &→ QR RS &→ T Which of the following functional dependencies can be inferred from the above functional dependencies?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.