chapter

    Database Systems Short Notes for Gate Da

    GATE DA Database Systems: 4 chapters, 19 previous year questions (86% of Database Management and Warehousing), 1683 practice questions and one solved question

    A question from this chapter

    Question 1
    Level 3: Exam Standard

    Consider two relations and such that and . What is the maximum possible number of tuples in the relation resulting from the relational algebra expression ?

    Question 2
    Level 3: Exam Standard

    Consider relations with Primary Key , and with Primary Key and Foreign Key referencing .

    The current instances are and .

    Evaluate the truth of the following statements:

    S1: Inserting into will violate a foreign key constraint.

    S2: Inserting into will not violate any constraint.

    S3: Deleting from will violate a foreign key constraint.

    S4: Updating to set for the tuple where will violate a constraint.

    Which of the statements are TRUE?

    Question 3
    Level 3: Exam Standard

    Consider a relation schema with the set of functional dependencies such that the only candidate keys are and . How many super keys of contain exactly two prime attributes?

    Question 4
    Level 3: Exam Standard

    In a database system, a B+ tree index is to be constructed for a relation. The block size is 1024 bytes. Each node pointer occupies 4 bytes, each search key field occupies 10 bytes, each data record pointer occupies 6 bytes, and the next-leaf pointer occupies 4 bytes. What is the MAXIMUM number of records that can be indexed by a B+ tree of height 3 (where the root is at level 1 and leaves are at level 3)?

    Free preview ends here

    Login to view the complete short notes

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Database Systems Short Notes for GATE DA

    GATE DA Database Systems: 4 chapters, 19 previous year questions (86% of Database Management and Warehousing), 1683 practice questions and one solved question from each chapter.

    About Database Systems Short Notes

    Quick revision sheets for Database Systems in GATE DA. Every chapter is condensed into key formulas, shortcuts and common traps so you can revise 4 chapters fast before the exam.

    Database Systems Weightage in GATE DA

    Database Systems accounts for 19 of 22 Database Management and Warehousing previous year questions in our bank (86%), about 6.3 per paper across 3 papers.

    Database Systems Chapter Matrix

    ChapterTopicsPYQsShare of unit PYQsPractice questions
    Relational Algebra and Sql QueriesRelational Algebra Expressions and Query Semantics, Sql Joins, Aggregation and Grouping, Sql Subqueries and Query Result Evaluation947%760
    Er Model, Keys and Integrity ConstraintsEr-to-relational Mapping and Multivalued Attributes, Keys, Null Constraints and Foreign Key Integrity316%271
    Functional Dependencies and NormalizationFunctional Dependencies and Candidate Keys, Normalization, Bcnf and Dependency Preservation, Armstrong Axioms and Derived Dependencies421%378
    Indexing and B+ TreesB+ Tree Structure, Insertion and Fanout Calculation, Index Selection for Sql Query Processing316%274

    More from Database Management and Warehousing

    One Solved Question from Each Database Systems Chapter

    Question 1 · Relational Algebra and SQL Queries MCQ

    Consider two relations and such that and . What is the maximum possible number of tuples in the relation resulting from the relational algebra expression ?

    1. A.

      5

    2. B.

      95

    3. C.

      100

    4. D.

      20

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: This is a boundary maximization problem for the division operation, which requires finding how many complete sets of the divisor can be formed from the dividend.

    Step 1: The division finds all values of the non-common attributes (here, ) that are associated with every tuple in .

    Step 2: For a single value of to be in the result, there must be at least one tuple in for every tuple in . Since , each qualifying requires at least 5 tuples in .

    Step 3: We want to maximize the number of such values. To do this, we must use the minimum number of tuples in per , which is exactly 5.

    Step 4: Given , the maximum number of values is .

    Step 5: This maximum is achievable if the 100 tuples in are perfectly partitioned into 20 groups of 5, where each group contains exactly the 5 tuples of .

    Answer: 20

    Question 2 · ER Model, Keys and Integrity Constraints MSQ

    Consider relations with Primary Key , and with Primary Key and Foreign Key referencing .

    The current instances are and .

    Evaluate the truth of the following statements:

    S1: Inserting into will violate a foreign key constraint.

    S2: Inserting into will not violate any constraint.

    S3: Deleting from will violate a foreign key constraint.

    S4: Updating to set for the tuple where will violate a constraint.

    Which of the statements are TRUE?

    1. A.

      S1

    2. B.

      S2

    3. C.

      S3

    4. D.

      S4

    Correct Answer:

    ["B","C"]

    Step-by-Step Solution

    Key idea: Test each statement against the core rules of Foreign Key constraints, paying close attention to the NULL exception and operation asymmetry.

    Step 1: Evaluate S1. Inserting into the Parent table . Adding a new parent key never violates child constraints. S1 is FALSE.

    Step 2: Evaluate S2. Inserting into the Child table . The new foreign key value is . Since $2$ exists in , this is a valid reference. S2 is TRUE.

    Step 3: Evaluate S3. Deleting from . The child table contains , which references . Deleting the parent key leaves an orphaned child, violating referential integrity. S3 is TRUE.

    Step 4: Evaluate S4. Updating to set where . The core rule of foreign keys states that a NULL value automatically satisfies the constraint (the NULL exception). S4 is FALSE.

    True statements: S2 and S3.

    Question 3 · Functional Dependencies and Normalization MCQ

    Consider a relation schema with the set of functional dependencies such that the only candidate keys are and . How many super keys of contain exactly two prime attributes?

    1. A.

      8

    2. B.

      16

    3. C.

      24

    4. D.

      32

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a reverse-engineering question where you must deduce the prime attributes from the candidate keys and then count super keys satisfying a specific cardinality constraint.

    Step 1: Identify prime and non-prime attributes. The candidate keys are and . The prime attributes are those in at least one candidate key: . The non-prime attributes are .

    Step 2: A super key must contain at least one candidate key. We want super keys with exactly two prime attributes.

    Step 3: If a super key contains , its prime attributes are at least . To have exactly two, it cannot contain . So it must be of the form , where . There are such super keys.

    Step 4: If a super key contains , its prime attributes are at least . To have exactly two, it cannot contain . So it must be of the form , where . There are such super keys.

    Step 5: The intersection of these two sets of super keys would require containing both and , meaning it contains , which has 3 prime attributes. Thus, the intersection is empty for our constraint.

    Step 6: Total super keys = .

    Answer: 16.

    Question 4 · Indexing and B+ Trees MCQ

    In a database system, a B+ tree index is to be constructed for a relation. The block size is 1024 bytes. Each node pointer occupies 4 bytes, each search key field occupies 10 bytes, each data record pointer occupies 6 bytes, and the next-leaf pointer occupies 4 bytes. What is the MAXIMUM number of records that can be indexed by a B+ tree of height 3 (where the root is at level 1 and leaves are at level 3)?

    1. A.

      341,056

    2. B.

      335,727

    3. C.

      389,017

    4. D.

      331,128

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a maximum capacity question. The insight is that tree capacity is the product of maximum fanouts at each level, and the leaf level has a different capacity formula because it stores data pointers and a next-leaf pointer.

    Step 1: Calculate maximum non-leaf fanout .

    A non-leaf node has pointers and keys.

    So .

    Step 2: Calculate maximum leaf entries .

    A leaf node has entries (key + data pointer) plus one next-leaf pointer.

    So .

    Step 3: Calculate maximum records for height 3.

    • Root (level 1): max 73 pointers → 73 children
    • Internal nodes (level 2): max 73 nodes, each with max 73 pointers → leaves
    • Leaf nodes (level 3): max 5329 nodes, each with max 63 entries
    • Total records:

    Answer: 335,727