GateAI

GATE CSE Integrity Constraints and Normal Forms PYQs

Medium yield24.4% of Databases

In GATE, Normal Forms questions test a candidate's ability to identify candidate keys, classify relational schemas into appropriate normal forms (such as 3NF an… Read the guide

Questions
30
Asked
since 2011
Total marks
43
Marks / paper
1.7

30 GATE CSE Integrity Constraints and Normal Forms PYQs with solutions, from Databases. Browse all GATE CSE PYQs.

Questions

Every official paper that asked this topic, newest first.

What GATE tests in Integrity Constraints and Normal Forms

Concepts, patterns, formulas and traps distilled from past papers.

In GATE, Normal Forms questions test a candidate's ability to identify candidate keys, classify relational schemas into appropriate normal forms (such as 3NF and BCNF), and evaluate decomposition properties (lossless join and dependency preservation). Questions combine normal form verification with decomposition analysis, frequently formatted as multi-select questions (MSQs) requiring rigorous evaluation of all properties across both the original and decomposed relations.

Core concepts

  • Attribute closure computation (X+) and minimal candidate key search
  • Prime vs. non-prime attributes definition
  • Normal Form definitions and hierarchy: 1NF (atomicity), 2NF (no partial dependency), 3NF (LHS is superkey or RHS is prime), BCNF (LHS is superkey)
  • Armstrong's Axioms (Reflexivity, Augmentation, Transitivity) and derived rules (Union, Decomposition, Pseudotransitivity, Composition)
  • Minimal / Canonical cover / Irreducible equivalent computation
  • Lossless join decomposition test and dependency preservation guarantees across 1NF, 2NF, 3NF, and BCNF
  • Binary relations R(A, B) properties (always in BCNF)
  • Referential integrity constraints and foreign key semantics
  • Self-referencing / recursive foreign keys
  • Multiple foreign keys in a single relation schema
  • Referential triggered actions: ON DELETE CASCADE, ON DELETE SET NULL, ON UPDATE CASCADE, RESTRICT
  • Candidate key uniqueness and minimality properties on relation instances
  • Set difference and projection formulations of integrity constraints
  • Prime Attribute (Key Attribute)
  • Non-prime Attribute
  • Candidate Key
  • Primary Key vs. Candidate Key distinction
  • Attribute closure computation
  • Candidate key and superkey identification
  • Boyce-Codd Normal Form (BCNF)
  • Third Normal Form (3NF)
  • Lossless join decomposition test
  • Functional dependency projection on sub-relations
  • Candidate key identification
  • Prime vs non-prime attribute classification
  • Third Normal Form (3NF) criteria
  • Transitive and partial functional dependencies

Recurring question patterns

  • Superkey Counting via Inclusion-Exclusion

    CommonNAT1 marks2026, 2022, 2014

    Given a relation schema of nn attributes and one or more candidate keys, compute the total number of distinct superkeys using powers of 2 and PIE.

  • Candidate Key and Normal Form Identification from FD Set

    CommonMCQ2 marks2020, 2016, 2014, 2013

    Given an attribute set and a set of functional dependencies FF, find all candidate keys by attribute closure, identify prime vs. non-prime attributes, and determine the highest normal form satisfied.

  • Armstrong's Axioms and FD Inferences

    CommonMSQ1.5 marks2026, 2024, 2021, 2017

    Given a set of FDs or generic rules, determine which dependencies hold, identify minimal/irreducible covers, or find necessary/sufficient axioms for derived rules.

  • Lossless Join and Dependency Preservation in Decompositions

    OccasionalMCQ2 marks2026, 2022, 2021

    Given a relation decomposition D=(R1,R2,…,Rk)D = (R_1, R_2, \dots, R_k), determine whether the decomposition is lossless (via pairwise superkey intersection checks or Chase matrix) and whether it preserves dependencies across normal forms.

  • Combinatorial Bounds on Functional Dependencies

    OccasionalNAT2 marks2024

    Counting possible functional dependencies satisfying specified structural constraints (e.g., disjoint LHS and RHS, non-empty) on a relation of nn attributes.

  • Relational Algebra Representation of Referential Integrity

    OccasionalMCQ2 marks2012

    Given two relations where one has a foreign key referencing the primary/candidate key of the other, identify the valid relational algebra/set expression representing the constraint (e.g., subset relation or empty difference).

  • Candidate Key Uniqueness on Table Instances

    OccasionalNAT1 marks2014

    Given a relation instance with a masked or variable attribute value XX, find the value that would violate the uniqueness property of a proposed composite or single-attribute candidate key.

  • Referential Actions Simulation (CASCADE vs SET NULL)

    OccasionalNAT1 marks2017

    Given two or more interacting tables with defined foreign key actions (ON DELETE CASCADE, ON DELETE SET NULL, ON UPDATE CASCADE), trace the cascade steps upon deleting a tuple and count the additional deleted or modified tuples.

  • Conceptual Properties of Keys and Constraints

    OccasionalMCQ1 marks2021

    True/False or matching statements evaluating fundamental properties of foreign keys, including self-referencing relations (unary/recursive relationships) and relations containing multiple foreign keys.

  • Formal Definition of Relational Schema Terminology

    CommonMCQ1 marks2014

    Direct, 1-mark conceptual MCQ testing the exact mathematical/relational definition of key normalization concepts such as prime attributes, candidate keys, or superkeys.

  • Decomposition and Normal Form Verification

    CommonMSQ2 marks2025

    A relational schema along with a set of functional dependencies is provided and decomposed into two or more sub-relations. Candidates must evaluate multiple statements regarding the normal form (BCNF/3NF) of the original relation, the normal form of the sub-relations, and decomposition properties such as lossless join.

  • Multi-Schema Normal Form Identification

    CommonMSQ2 marks2025

    Given two or more relational schemas along with their sets of functional dependencies, evaluate candidate keys and test non-trivial FDs against normal form rules (such as 3NF or BCNF) to verify positive or negative assertions about their normal forms.

Formulas GATE uses

Superkeys from a Single Candidate Key

Number of superkeys=2n−∣K∣\text{Number of superkeys} = 2^{n - |K|}

Used when a relation has nn total attributes and a single candidate key KK of size ∣K∣|K|.

Superkeys with Multiple Candidate Keys (PIE)

∣S(K1∪K2)∣=2n−∣K1∣+2n−∣K2∣−2n−∣K1∪K2∣|S(K_1 \cup K_2)| = 2^{n - |K_1|} + 2^{n - |K_2|} - 2^{n - |K_1 \cup K_2|}

Used when calculating the total number of distinct superkeys for a relation having two candidate keys K1K_1 and K2K_2.

Useful / Non-trivial Disjoint FD Count

Number of useful FDs=3n−2n+1+1\text{Number of useful FDs} = 3^n - 2^{n+1} + 1

Used to count non-empty disjoint pairs (X,Y)(X, Y) where X∩Y=∅X \cap Y = \emptyset on a set of nn attributes.

Two-Relation Lossless Join Condition

(R1∩R2→R1)∨(R1∩R2→R2)(R_1 \cap R_2 \to R_1) \lor (R_1 \cap R_2 \to R_2)

Used to verify if decomposing RR into R1R_1 and R2R_2 is a lossless join decomposition.

Referential Integrity Subset Condition

ΠFK(r1)⊆ΠPK(r2)  ⟺  ΠFK(r1)−ΠPK(r2)=∅\Pi_{FK}(r_1) \subseteq \Pi_{PK}(r_2) \iff \Pi_{FK}(r_1) - \Pi_{PK}(r_2) = \varnothing

Used when verifying whether all non-null foreign key values in a referencing relation instance exist in the referenced primary key column of the target relation.

Candidate Key Uniqueness Requirement

∀t1,t2∈r (t1≠t2  ⟹  t1[K]≠t2[K])\forall t_1, t_2 \in r \, (t_1 \neq t_2 \implies t_1[K] \neq t_2[K])

Used when determining if a given set of attributes KK uniquely identifies tuples in a given relation instance rr.

Definition of Prime Attribute

A∈Prime(R)  ⟺  ∃K∈CK(R) such that A∈KA \in \text{Prime}(R) \iff \exists K \in \mathcal{CK}(R) \text{ such that } A \in K

Used to classify whether an attribute AA in relation schema RR is prime or non-prime with respect to the set of candidate keys CK(R)\mathcal{CK}(R).

BCNF Condition

∀(X→Y)∈F+, either Y⊆X (trivial) or X is a superkey of R\forall (X \rightarrow Y) \in F^+, \text{ either } Y \subseteq X \text{ (trivial) or } X \text{ is a superkey of } R

Determining if a schema or its projected sub-relations satisfy Boyce-Codd Normal Form.

Lossless Join Decomposition Condition

(R1∩R2→R1)∈F+or(R1∩R2→R2)∈F+(R_1 \cap R_2 \rightarrow R_1) \in F^+ \quad \text{or} \quad (R_1 \cap R_2 \rightarrow R_2) \in F^+

Checking whether decomposing relation RR into R1R_1 and R2R_2 guarantees a lossless (non-additive) join.

3NF Condition

∀(X→Y)∈F+, either Y⊆X, or X is a superkey, or Y is a prime attribute\forall (X \rightarrow Y) \in F^+, \text{ either } Y \subseteq X, \text{ or } X \text{ is a superkey, or } Y \text{ is a prime attribute}

Determining if a relation satisfies Third Normal Form.

Third Normal Form (3NF) Condition

∀(X→Y)∈F+ (non-trivial), X is a superkey∨Y⊆Prime Attributes\forall (X \to Y) \in F^+ \text{ (non-trivial)},\ X \text{ is a superkey} \lor Y \subseteq \text{Prime Attributes}

Used to verify whether a relation schema satisfies 3NF after finding candidate keys and prime attributes.

Attribute Closure Computation

X(i+1)=X(i)∪{B∣∃(A→B)∈F such that A⊆X(i)}X^{(i+1)} = X^{(i)} \cup \{B \mid \exists (A \to B) \in F \text{ such that } A \subseteq X^{(i)}\}

Used to compute attribute closure X+X^+ to find candidate keys and determine if XX is a superkey.

Examiner traps in Integrity Constraints and Normal Forms

  • Assuming all prime attributes imply BCNF: If all attributes are prime, the relation is in 3NF, but NOT necessarily in BCNF (e.g., AB → C, C → B).
  • Confusing partial dependency (violates 2NF) with transitive dependency (violates 3NF): 2NF specifically forbids non-prime attributes depending on a proper subset of ANY candidate key.
  • Forgetting to check the intersection in superkey counting via PIE, leading to double-counting supersets common to both candidate keys.
  • Assuming BCNF decomposition always preserves functional dependencies (BCNF is always lossless, but dependency preservation is guaranteed only up to 3NF).
  • Misidentifying trivial FDs: X → Y is trivial if and only if Y ⊆ X; partial overlap like PR → RT is semi-trivial, not purely trivial.
  • Reversing the direction of set difference in referential integrity: confusing FK(r1) - PK(r2) = with PK(r2) - FK(r1) = (referenced table can have extra keys not present in FK).
  • Confusing ON DELETE SET NULL with ON DELETE CASCADE (SET NULL updates the referencing column to NULL and does NOT delete the tuple).
  • Misunderstanding self-referential relationships by assuming a foreign key must always point to a distinct table.
  • Counting the initial deleted tuple when the question explicitly asks for the number of 'additional' records deleted.
  • Confusing existential quantification ('appears in at least one candidate key') with universal quantification ('must appear in all candidate keys').
  • Restricting the definition of prime attribute only to the chosen Primary Key rather than any valid Candidate Key.
  • Assuming a relation is NOT in BCNF/3NF simply because it was decomposed into smaller relations.
  • Neglecting to project functional dependencies onto the decomposed sub-schemas when evaluating their normal forms.
  • Confusing the lossless join condition ((R1 ∩ R2)+ R1 or R2) with dependency preservation.
  • Misidentifying candidate keys by failing to include essential attributes (attributes never appearing on the RHS of any FD).
  • Assuming an FD X → Y is valid for 3NF when X is not a superkey and Y is non-prime.
  • Forgetting that prime attributes are attributes belonging to *any* candidate key, not just the primary key.
  • Selecting affirmative options ('R is in 3NF') by checking only one FD instead of checking every non-trivial FD.

How questions are asked

  • Given schema + FD set, find candidate keys and highest normal form
  • Count superkeys for given candidate keys (NAT)
  • Check valid Armstrong axiom derivations and inferences (MSQ)
  • Determine lossless join vs. lossy decomposition across subrelations (MCQ)
  • Identify canonical/minimal cover among given options (MCQ)
  • Identify true/false theoretical properties of normal forms (MCQ/MSQ)
  • Relational algebra set difference equivalence
  • Tabular instance key violation search (NAT)
  • Cascade/Set-Null deletion tracing and counting (NAT)
  • Two-statement conceptual validity check (MCQ/MSQ)
  • Direct conceptual definition MCQ
  • MSQ evaluating normal forms of original/decomposed schemas and lossless join property
  • Identifying highest normal form satisfied by a relation given a set of FDs
  • Determine 3NF/BCNF compliance for multiple schemas
  • True/False evaluation of normal form status via MSQ

Paper trends

  • Shift from linked/single-choice MCQs on standard closure drills to MSQs testing edge-case theoretical properties (e.g., 1NF composite attributes, Armstrong axiom derivations, BCNF dependency preservation).

    2026, 2024, 2021, 2014, 2013

  • Introduction of NAT questions testing combinatorial counts (number of superkeys, number of useful FDs) over schemas of small attribute sizes (n=4n=4 or 55).

    2026, 2024, 2022, 2014

  • Questions moved from purely abstract relational algebra representations of foreign keys to concrete instance-based simulation (NATs with tabular data) and statement-based conceptual evaluation.

    2021, 2017, 2014, 2012

  • Even with multi-table cascade definitions, question difficulty has consistently remained easy to moderate, focusing on careful rule application rather than long multi-step chaining.

    2017, 2014

  • Foundational 1-mark conceptual definitions test exact phrasing (e.g., universal quantification 'in all' vs. existential quantification 'in some' candidate keys) to evaluate precision in normalization theory.

    2014

  • Recent papers employ MSQ formats for normal form problems, requiring simultaneous validation of candidate keys, normal form definitions (3NF/BCNF), and decomposition guarantees (lossless join) in a single question.

    2025

  • Introduction of MSQ format pairing complementary assertions (e.g., 'R is in 3NF' vs 'R is NOT in 3NF') across multiple schemas, requiring complete verification of each schema independently without negative marking.

    2025

Difficulty notes

Easy: Direct superkey counting with 1 or 2 keys; trivial FD definitions; 2-attribute relation properties; direct MSQs on Armstrong's rules. Medium: Finding multiple cyclic candidate keys in 8-attribute relations; minimal cover with extraneous LHS/RHS elimination; multi-step lossless join decompositions; combinatorial counting of valid FDs using set partitions.