GateAI
Integrity Constraints and Normal Forms

GATE CSE 2025 Set 2 · Q46

MSQ2 marksMedium

Time

Consider the following relational schema along with all the functional dependencies that hold on them. R1(A,B,C,D,E):{D→E,EA→B,EB→C}R1(A, B, C, D, E): \{ D \to E, EA \to B, EB \to C \} R2(A,B,C,D):{A→D,A→B,C→A}R2(A, B, C, D): \{ A \to D, A \to B, C \to A \} Which of the following statement(s) is/are TRUE?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: C) R1 is NOT in 3NF; D) R2 is NOT in 3NF

Integrity Constraints and Normal Forms

To check whether a relation is in Third Normal Form (3NF), every non-trivial functional dependency X→YX \to Y must satisfy at least one of the following conditions:

  1. XX is a superkey, or

  2. YY is a prime attribute (part of a candidate key).

---

### Analysis of $R1(A, B, C, D, E)$:

  • Given FDs:{D→E,EA→B,EB→C}\{ D \to E, EA \to B, EB \to C \}

  • Attributes AA and DD do not appear on the right-hand side of any functional dependency, so they must be part of any candidate key.

  • Computing the attribute closure of ADAD:

    (AD)+={A,D,E,B,C}(AD)^+ = \{A, D, E, B, C\}
  • Therefore, the only candidate key is ADAD.

  • Prime attributes: {A,D}\{A, D\}

  • Non-prime attributes: {B,C,E}\{B, C, E\}

  • For the functional dependency D→ED \to E:

    • DD is not a superkey ((D)+={D,E}≠{A,B,C,D,E}(D)^+ = \{D, E\} \neq \{A, B, C, D, E\}).

    • EE is not a prime attribute.

  • Thus, R1R1 violates the condition for 3NF, meaning R1R1 is NOT in 3NF.

---

### Analysis of $R2(A, B, C, D)$:

  • Given FDs:{A→D,A→B,C→A}\{ A \to D, A \to B, C \to A \}

  • Computing attribute closures:

    • (C)+={C,A,D,B}={A,B,C,D}  ⟹  C(C)^+ = \{C, A, D, B\} = \{A, B, C, D\} \implies C is a candidate key.

    • (A)+={A,D,B}≠{A,B,C,D}(A)^+ = \{A, D, B\} \neq \{A, B, C, D\}

  • The only candidate key is CC.

  • Prime attributes: {C}\{C\}

  • Non-prime attributes: {A,B,D}\{A, B, D\}

  • For the functional dependency A→DA \to D (or A→BA \to B):

    • AA is not a superkey.

    • DD (and BB) is not a prime attribute.

  • Thus, R2R2 violates the condition for 3NF, meaning R2R2 is NOT in 3NF.

---

Therefore, statements (C) and (D) are 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 Q46 of the GATE CSE 2025 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 it is the only one in GATE CSE 2025 Set 2.

How GATE tests Integrity Constraints and Normal Forms

More from GATE CSE 2025 Set 2

Share this solution

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

GateAI solution cardGATE CSE 2025 Set 2 · Q46 · MSQ

Consider the following relational schema along with all the functional dependencies that hold on them. R1(A, B, C, D, E): { D → E, EA → B, EB → C } R2(A, B, C, D): { A → D, A → B, C → A } Which of the following statement(s) is/are 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.