GATE CSE Databases (DBMS) 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
- Topics
- 7
- Questions
- 116
- Marks / paper
- 6.8
- Asked
- since 2011
These are the 116 GATE CSE Databases PYQs (since 2011), grouped topic-wise with solutions. See all GATE CSE PYQs or GATE CSE question papers by year.
Topics
Open a topic to browse its questions, or practice it as a timed test.
By year
Jump to the first question from each year’s paper.
What GATE tests in Databases
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). Across 2012–2026, Transactions and Concurrency Control in GATE CS is heavily weighted towards testing precedence (serialization) graphs for conflict serializability, schedule classification (recoverable, cascadeless, strict), and locking/timestamping protocol mechanics. In GATE CS, SQL is tested through a balanced mix of declarative query semantics, relational-algebra correspondence, subquery evaluation (correlated, nested, and universal quantification), and instance-level tracing.
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
How questions show up
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).
High-yield formulas
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.
Examiner traps in Databases
- 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.
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