GATE CSE Integrity Constraints and Normal Forms PYQs
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.
- GATE CSE 2026 Set 1 · Q30Let and be the attributes of a relation in a relational schema. Let indicate functional dependency in the context of a relational database, where . Which of the following options is/are always true?MSQ1 markEasySolve
- GATE CSE 2026 Set 1 · Q31In the context of relational database normalization, which of the following statements is/are true?MSQ1 markMediumSolve
- GATE CSE 2026 Set 1 · Q65Consider a relational database schema with a relation . If and are the only two candidate keys of the relation , then the number of superkeys of relation is ________. (answer in integer)NAT2 marksEasySolve
- GATE CSE 2026 Set 2 · Q42In the context of schema normalization in relational DBMS, consider a set F of functional dependencies. The set of all functional dependencies implied by F is called the closure of F. To compute the closure of F, Armstrong's Axioms can be applied. Consider and as sets of attributes over a relational…MCQ2 marksMediumSolve
- GATE CSE 2025 Set 1 · Q47Consider a relational schema , with functional dependencies . The relation is decomposed into two relations, and . Which of the following statement(s) is/are TRUE?MSQ2 marksEasySolve
- GATE CSE 2025 Set 2 · Q46Consider the following relational schema along with all the functional dependencies that hold on them. Which of the following statement(s) is/are TRUE?MSQ2 marksMediumSolve
- GATE CSE 2024 Set 1 · Q22Which of the following statements about a relation in first normal form (1NF) is/are TRUE ?MSQ1 markEasySolve
- GATE CSE 2024 Set 1 · Q44The symbol indicates functional dependency in the context of a relational database. Which of the following options is/are TRUE?MSQ2 marksEasySolve
- GATE CSE 2024 Set 2 · Q56A functional dependency is termed as a if and only if it satisfies all the following three conditions: - is not the empty set. - is not the empty set. - Intersection of and is the empty set. For a relation with 4 attributes,…NAT2 marksMediumSolve
- GATE CSE 2022 · Q14In a relational data model, which one of the following statements is TRUE?MCQ1 markEasySolve
- GATE CSE 2022 · Q31Consider a relation with the following three functional dependencies. The number of superkeys in the relation R is ________.NAT1 markEasySolve
- GATE CSE 2021 Set 1 · Q33Consider the relation with the following functional dependencies. Consider the decomposition of the relation into the constituent relations according to the following two decomposition schemes. …MCQ2 marksMediumSolve
- GATE CSE 2021 Set 2 · Q6Consider the following statements S1 and S2 about the relational data model: S1: A relation scheme can have at most one foreign key. S2: A foreign key in a relation scheme R cannot be used to refer to tuples of R. Which one of the following choices is correct?MCQ1 markEasySolve
- GATE CSE 2021 Set 2 · Q40Suppose the following functional dependencies hold on a relation with attributes , and : Which of the following functional dependencies can be inferred from the above functional dependencies?MSQ2 marksEasySolve
- GATE CSE 2020 · Q36Consider a relational table that is in 3NF, but not in BCNF. Which one of the following statements is TRUE?MCQ2 marksMediumSolve
- GATE CSE 2017 Set 1 · Q16The following functional dependencies hold true for the relational schema : Which of the following is irreducible equivalent for this set of functional dependencies?MCQ1 markMediumSolve
- GATE CSE 2017 Set 2 · Q19Consider the following tables T1 and T2. In table T1, is the primary key and is the foreign key referencing in table T2 with on-delete cascade and on-update cascade. In table T2, is the primary key and is the foreign key referencing …NAT1 markEasyDiagramSolve
- GATE CSE 2016 Set 1 · Q21Which of the following is NOT a superkey in a relational schema with attributes and primary key ?MCQ1 markEasySolve
- GATE CSE 2016 Set 1 · Q23A database of research articles in a journal uses the following schema. (, , , , , , ) The primary key is (, , , ) and the following functional dependencies exist in the…MCQ1 markMediumSolve
- GATE CSE 2015 Set 3 · Q20Consider the relation with the following set of functional dependencies Which of the following is the trivial functional dependency in , where is closure of ?MCQ1 markEasySolve
- GATE CSE 2014 Set 1 · Q21Consider the relation scheme and the set of functional dependencies on . What is the key for ?MCQ1 markEasySolve
- GATE CSE 2014 Set 1 · Q30Given the following two statements: S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNF. S2: is a minimal cover for the set of functional dependencies . Which one of the…MCQ2 marksMediumSolve
- GATE CSE 2014 Set 2 · Q21The maximum number of superkeys for the relation schema with as the key is _______.NAT1 markEasySolve
- GATE CSE 2014 Set 2 · Q22Given an instance of the STUDENTS relation as shown below: For (, ) to be a key for this instance, the value X should NOT be equal to _________.NAT1 markEasyDiagramSolve
- GATE CSE 2014 Set 3 · Q22A prime attribute of a relation scheme is an attribute that appearsMCQ1 markEasySolve
- GATE CSE 2013 · Q54Statement for Linked Answer Questions 54 and 55: Relation has eight attributes . Fields of contain only atomic values. is a set of functional dependencies (FDs) so that is exactly the set of…MCQ2 marksMediumSolve
- GATE CSE 2013 · Q55Statement for Linked Answer Questions 54 and 55: Relation has eight attributes . Fields of contain only atomic values. is a set of functional dependencies (FDs) so that is exactly the set of…MCQ2 marksMediumSolve
- GATE CSE 2012 · Q2Which of the following is ?MCQ1 markEasySolve
- GATE CSE 2012 · Q43Suppose and are two relation schemas. Let and be the corresponding relation instances. B is a foreign key that refers to C in . If data in and satisfy referential integrity constraints, which of the following is ALWAYS TRUE?MCQ2 marksEasySolve
- GATE CSE 2011 · Q12Consider a relational table with a single record for each registered student with the following attributes. 1. : Unique registration number of each registered student 2. : Unique identity number, unique at the national level for each citizen 3. : Unique account number…MCQ1 markEasySolve
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, 2014Given a relation schema of 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, 2013Given an attribute set and a set of functional dependencies , 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, 2017Given 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, 2021Given a relation decomposition , 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 marks2024Counting possible functional dependencies satisfying specified structural constraints (e.g., disjoint LHS and RHS, non-empty) on a relation of attributes.
Relational Algebra Representation of Referential Integrity
OccasionalMCQ2 marks2012Given 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 marks2014Given a relation instance with a masked or variable attribute value , 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 marks2017Given 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 marks2021True/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 marks2014Direct, 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 marks2025A 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 marks2025Given 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
Used when a relation has total attributes and a single candidate key of size .
Superkeys with Multiple Candidate Keys (PIE)
Used when calculating the total number of distinct superkeys for a relation having two candidate keys and .
Useful / Non-trivial Disjoint FD Count
Used to count non-empty disjoint pairs where on a set of attributes.
Two-Relation Lossless Join Condition
Used to verify if decomposing into and is a lossless join decomposition.
Referential Integrity Subset Condition
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
Used when determining if a given set of attributes uniquely identifies tuples in a given relation instance .
Definition of Prime Attribute
Used to classify whether an attribute in relation schema is prime or non-prime with respect to the set of candidate keys .
BCNF Condition
Determining if a schema or its projected sub-relations satisfy Boyce-Codd Normal Form.
Lossless Join Decomposition Condition
Checking whether decomposing relation into and guarantees a lossless (non-additive) join.
3NF Condition
Determining if a relation satisfies Third Normal Form.
Third Normal Form (3NF) Condition
Used to verify whether a relation schema satisfies 3NF after finding candidate keys and prime attributes.
Attribute Closure Computation
Used to compute attribute closure to find candidate keys and determine if 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 ( or ).
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.