GateAI
Integrity Constraints and Normal Forms

GATE CSE 2012 · Q43

MCQ2 marksEasy

Time

Suppose R1(A,B)R_1(A, B) and R2(C‾,D)R_2(\underline{C}, D) are two relation schemas. Let r1r_1 and r2r_2 be the corresponding relation instances. B is a foreign key that refers to C in R2R_2. If data in r1r_1 and r2r_2 satisfy referential integrity constraints, which of the following is ALWAYS TRUE?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) B(r1) - C(r2) =

Integrity Constraints and Normal Forms

Since BB is a foreign key in R1R_1 referencing the primary key CC in R2R_2, by definition of referential integrity:

  • Every non-null value appearing in attribute BB of instance r1r_1 must exist in attribute CC of instance r2r_2.

  • In set-theoretic terms, the projection of r1r_1 on BB must be a subset of the projection of r2r_2 on CC:

    ΠB(r1)⊆ΠC(r2)\Pi_B(r_1) \subseteq \Pi_C(r_2)
  • Therefore, the set difference ΠB(r1)−ΠC(r2)\Pi_B(r_1) - \Pi_C(r_2) is empty:

    ΠB(r1)−ΠC(r2)=∅\Pi_B(r_1) - \Pi_C(r_2) = \varnothing

Hence, (A) is ALWAYS TRUE.

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 Q43 of the GATE CSE 2012 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. 7 of them are 2-mark MCQs like this one, and GATE CSE 2012 has 2.

How GATE tests Integrity Constraints and Normal Forms

More from GATE CSE 2012

Share this solution

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

GateAI solution cardGATE CSE 2012 · Q43 · MCQ

Suppose R1(A, B) and R2( C, D) are two relation schemas. Let r1 and r2 be the corresponding relation instances. B is a foreign key that refers to C in R2. If data in r1 and r2 satisfy referential integrity constraints, which of the following is ALWAYS TRUE?

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.