DBMS Notes and Questions
Three Schema Architecture of DBMS:
o Define Physical Data Independence and Logical Data Independence.
o What is a Data Dictionary?
o What are the differences between Data Structure and DBMS?
o Define Schema, Instance, Tuple, and Attributes.
o What are the different types of Database Models (e.g., Network, Hierarchical,
Relational)?
2. ER Diagram:
o Questions to build an ER diagram from given problems (e.g., Draw an ER diagram
for a Library Management System or similar examples).
o Explain the components of an ER diagram.
o What is an Entity? What is an Entity Set?
o What are the differences between Strong and Weak Entities?
o Explain different types of Attributes (Simple, Composite, Derived, Multivalued).
o Explain the different types of Relationships (One-to-One, One-to-Many, Many-to-
Many).
o Define Cardinality with examples.
o Explain Generalization, Specialization, and Aggregation with examples.
3. Relational Algebra:
o Differences between Relational Algebra and Relational Calculus.
o Explain the basic operations in Relational Algebra.
o Explain Selection and Projection operations in Relational Algebra.
o Define Cartesian Product with an example.
o Write the differences between Cartesian Product and Join.
o What is the use of the Rename (ρ) operation?
o Write the differences between Inner Join and Outer Join.
4. SQL:
o Practice lab assignments for SQL commands.
o Focus on commands like Read, Delete, Drop, Truncate, Alter, and Self Join.
5. Normalization:
o Solve problems for 2NF, 3NF, and BCNF.
o What is Closure?
o What is Canonical Cover?
o Solve problems for Candidate Key, Super Key, Lossless Join Decomposition, and
Dependency Preservation problems.
o Define Functional Dependency and the differences between 3NF and BCNF.
o Write down Armstrong Axioms.
o Explain different types of Anomalies (Insert, Update, Delete).
o Why is Normalization needed?
6. Transactions:
o Definition of a Transaction.
o Conflict Serializability and View Serializability.
o Define three concurrency problems: Dirty Read, Non-Repeatable Read, and Phantom
Problem.
o Describe the Wait-Die and Wound-Wait protocols.
o Explain Deadlock Prevention techniques.
o Define ACID properties of Transactions.
7. Short Notes:
o Views
o Deadlock
o B-Tree
o B+ Tree
o Indexing
o Transaction State Diagram
o Time Stamp Protocol
o Log-Based Recovery