Dbms
Dbms
amounts of data.
2. Views of Data:
etc.
3. Data Models:
include:
(similar to OOP).
structure.
1
Network model: Data is stored in a graph structure
(attributes).
6. Relational Model:
7. Keys:
a record.
2
8. Relational Algebra:
(tables) in a database.
o Operations include:
related columns.
operations.
9. SQL Fundamentals:
views, etc.).
query.
3
11. Embedded SQL & Dynamic SQL:
language.
Employee).
Works).
2. E-R Diagrams:
3. Enhanced-ER Model:
relationships.
4
4. ER-to-Relational Mapping:
5. Functional Dependencies:
6. Normalization:
integrity.
7. Non-loss Decomposition:
8. Dependency Preservation:
decomposing a relation.
5
UNIT III: Transactions
1. Transaction Concepts:
executed at all).
2. ACID Properties:
4. Concurrency Control:
timestamps.
consistency.
6
5. Deadlock Handling:
other.
6. Recovery Concepts:
a failure.
transaction is complete.
recovery.
7. ARIES Algorithm:
1. RAID:
7
2. File Organization:
retrieval.
functions.
5. Query Processing:
6. Cost Estimation:
8
UNIT V: Advanced Topics
1. Distributed Databases:
management.
2. NOSQL Databases:
Redis).
Cassandra).
3. CAP Theorem:
4. Database Security:
certain data.
9
o SQL Injection: Protecting against malicious input that
2. Views of Data:
o External View: This is how end users interact with the data.
10
o Internal View: Describes how the data is actually stored (e.g.,
for performance.
3. Relational Model:
columns (attributes).
individual student.
4. Relational Algebra:
a related column.
duplicates.
tables.
5. SQL Fundamentals:
sql
CopyEdit
11
SELECT * FROM students; -- Retrieves all columns and rows from the
students table
sql
CopyEdit
and types.
database.
Student, Course).
2. Normalization:
12
1NF: Eliminate duplicate columns and make sure each
single column).
is a candidate key.
3. Dependency Preservation:
maintain integrity.
1. ACID Properties:
13
2. Concurrency Control:
inconsistencies.
data simultaneously.
these timestamps.
happen in parallel.
3. Deadlock Handling:
transactions.
from occurring.
14
UNIT IV: Implementation Techniques
1. RAID:
redundancy.
indexing.
1. Distributed Databases:
Two-Phase Commit.
2. NOSQL Databases:
documents.
3. Database Security:
16
4. Encryption & Public Key Infrastructure:
data transmission.
access.
Views of Data:
physical storage.
tables.
Relational Model:
17
(attributes).
1 John 2000-01-01
2 Alice 1999-03-14
Keys:
Relational Algebra:
column.
SQL Fundamentals:
18
o INSERT: Adds new records.
Example: INSERT INTO students (student_id, name, dob) VALUES (3, 'Bob',
'2001-05-20');
E-R Diagrams:
Normalization:
atomic).
19
o 2NF: Remove partial dependencies (non-key attributes
ER-to-Relational Mapping:
Transaction Concepts:
ACID Properties:
state to another.
20
o Isolation: Transactions should not interfere with each other.
undone.
permanently saved.
Concurrency Control:
Deadlock Handling:
improvement.
tolerance.
21
Indexing & Hashing:
function.
record quickly.
Query Processing:
decides the best way to retrieve the data, perhaps using an index
on name.
Distributed Databases:
tolerance.
NOSQL Databases:
22
o Document-based (e.g., MongoDB): Stores data in JSON-like
documents.
relationships.
"enrolled in."
Database Security:
securely.
23
UNIT I: Relational Databases
2-Mark Questions:
Remember:
1. What is a relational database?
Understand:
1. Explain the purpose of Database System.
Apply:
1. Provide an example of a JOIN operation in SQL.
Analyze:
1. Analyze the differences between Relational Model and Hierarchical
Model.
Evaluate:
1. Evaluate the importance of Relational Algebra in database querying.
2. Discuss the pros and cons of Dynamic SQL over Embedded SQL.
Create:
1. Create a simple SQL query to fetch records from a database table based
on certain conditions.
24
16-Mark Questions:
Remember:
1. Define and explain the terms Primary Key, Foreign Key, and
Relational Algebra.
Understand:
1. Explain the Relational Model with suitable examples.
with examples.
Apply:
1. Demonstrate how Normalization works through examples of 1NF,
Analyze:
1. Analyze the differences between Embedded SQL and Dynamic SQL with
examples.
2. Evaluate the use of SQL Joins and explain which join would be ideal for
Evaluate:
1. Evaluate the impact of SQL Injection on a database system and suggest
2. Critically evaluate the concept of Indexes and how they improve query
performance.
Create:
1. Create a database schema for a Student Enrollment System using
2-Mark Questions:
Remember:
1. Define Entity-Relationship (E-R) Model.
Understand:
1. Explain Normalization.
Apply:
1. Apply Functional Dependency to decompose a table into 2NF.
Analyze:
1. Analyze the difference between 2NF and 3NF normalization.
Evaluate:
1. Evaluate the significance of BCNF in database design.
Create:
1. Create an E-R diagram for a Library Management System.
16-Mark Questions:
Remember:
1. Define Normalization and describe its types (1NF, 2NF, 3NF, BCNF).
Apply:
1. Apply the process of Normalization to convert an unnormalized
BCNF.
Analyze:
1. Analyze the issues with the schema if it's not in BCNF and suggest
improvements.
Evaluate:
1. Evaluate the effectiveness of Non-loss Decomposition in maintaining
data integrity.
Create:
1. Design a Library Management System using E-R diagrams and
achieve BCNF.
2-Mark Questions:
Remember:
1. What is a transaction in DBMS?
27
2. What does ACID stand for in transactions?
Understand:
1. Explain Concurrency Control.
Apply:
1. How do you use Two-Phase Locking in DBMS to control concurrency?
Analyze:
1. Analyze the role of ACID properties in ensuring transaction integrity.
Update recovery.
Evaluate:
1. Evaluate the impact of Deadlock Handling on transaction
performance.
Create:
1. Design a transaction management system for an e-commerce platform.
16-Mark Questions:
Remember:
1. Define and explain the ACID properties of transactions.
Understand:
1. Explain Two-Phase Locking Protocol with examples.
28
Apply:
1. Apply the ACID properties to a banking transaction and describe how
Analyze:
1. Analyze how Two-Phase Locking prevents deadlock in DBMS.
recovery techniques.
Evaluate:
1. Critically evaluate the role of deadlock handling in DBMS and suggest
Create:
1. Design a recovery strategy for a financial transaction system based on
2-Mark Questions:
Remember:
1. Define RAID in the context of DBMS.
29
Understand:
1. Explain File Organization in DBMS.
Apply:
1. Apply B+ Tree indexing to speed up search queries.
Analyze:
1. Analyze the difference between Static Hashing and Dynamic Hashing.
Evaluate:
1. Evaluate the advantages of RAID in improving disk performance and
fault tolerance.
Create:
1. Design a hashing algorithm for efficiently storing employee records in
a database.
complex joins.
16-Mark Questions:
Remember:
1. Define RAID and describe its levels.
Understand:
1. Describe B+ Tree indexing and explain how it improves query
performance.
30
2. Explain Query Processing and how it translates SQL into execution
plans.
Apply:
1. Apply Dynamic Hashing and explain its advantages over static
hashing.
platform.
Analyze:
1. Analyze the impact of RAID levels on data availability and
performance.
Evaluate:
1. Evaluate the performance of different Query Optimization techniques
(Heuristics, Cost-based).
Create:
1. Design a file organization strategy for a video streaming platform’s
database.
queries.
2-Mark Questions:
Remember:
1. What is NOSQL?
31
Understand:
1. Explain the concept of Graph Databases.
Apply:
1. Apply the CAP Theorem to a distributed database scenario.
Analyze:
1. Analyze the differences between Document-based and Key-Value
NOSQL databases.
Evaluate:
1. Evaluate the strengths and weaknesses of NOSQL databases compared
database.
Create:
1. Design a NOSQL schema for a blog website that uses Document-based
storage.
securely.
32
UNIT I: Relational Databases
Remember:
key value.
Understand:
33
the primary key in another table, establishing a link between
the two.
Apply:
Answer:
sql
CopyEdit
FROM students
Analyze:
34
Hierarchical Model is less flexible and supports one-to-many
relationships only.
Evaluate:
querying.
system.
SQL.
35
Cons: It can be slower due to the need for runtime parsing
lacks flexibility.
Create:
Answer:
sql
CopyEdit
System.
Answer:
Entities: Book, Member, Loan
Relationships:
Attributes:
36
16-Mark Questions and Answers:
Remember:
1. Define and explain the terms Primary Key, Foreign Key, and
Relational Algebra.
Answer:
Understand:
Answer:
Table Students:
1 John 20
2 Alice 22
37
2. Discuss the working of SQL SELECT, INSERT, and UPDATE
Answer:
SELECT: Retrieves data from a table.
sql
CopyEdit
sql
CopyEdit
INSERT INTO students (student_id, name, age) VALUES (3, 'Bob', 21);
sql
CopyEdit
Apply:
Answer:
1NF: Ensures all attributes contain atomic values.
rows.
38
2NF: Achieved when 1NF is satisfied, and all non-key attributes
Answer:
Example of a Subquery:
sql
CopyEdit
Analyze:
Answer:
Embedded SQL: SQL queries are embedded within programming
CopyEdit
39
Dynamic SQL: SQL queries are created at runtime based on user
inputs. Example:
sql
CopyEdit
2. Evaluate the use of SQL Joins and explain which join would
Answer:
INNER JOIN: Returns only matching rows from both tables.
LEFT JOIN: Returns all rows from the left table and matching
RIGHT JOIN: Returns all rows from the right table and matching
Evaluation: Use INNER JOIN when you only need rows with
matching data; use LEFT JOIN when you need all rows from the
Remember:
data.
40
2. What are Functional Dependencies?
Understand:
dependencies.
Apply:
schema?
41
2. Explain how to normalize a database to the Third Normal
Form (3NF).
Answer:
1. Start with the database in 1NF.
Analyze:
Answer:
2NF: A table is in 2NF if it is in 1NF and has no partial
primary key).
keys).
multivalued dependency?
Answer:
Functional Dependency: A relationship where one attribute
student_name.
relation.
42
Evaluate:
normalization.
Create:
Enrollment System.
Answer:
Entities: Student, Course, Enrollment
Attributes:
Relationships:
43
Design a relational schema for a Library system that maintains Books
Answer:
Tables:
Books(book_id, title, author, year)
Relationships:
Remember:
in a database system.
Understand:
44
1. Explain the concept of isolation in ACID properties.
concurrently.
Apply:
database system?
Analyze:
45
1. Analyze the difference between deferred update and
Answer:
Deferred Update: Updates are not written to the database until a
concurrency control.
Answer:
Two-Phase Locking: Ensures that transactions lock data before
deadlocks.
Evaluate:
consistency.
46
2. Discuss the impact of deadlock handling on database
performance.
system performance.
Create:
Answer:
Use two-phase locking for concurrency control.
Answer:
sql
CopyEdit
-- Transaction 1:
BEGIN TRANSACTION;
COMMIT;
Remember:
improvement.
Understand:
48
engine to quickly locate data without scanning the entire
table.
Apply:
buckets.
Analyze:
Answer:
B Tree: A balanced tree where data can be stored in both internal
Evaluate:
processed together.
database performance.
database performance.
50
Create:
and department.
Answer:
Create a B+ Tree index on employee_id for fast lookups.
join operation.
Answer:
Hash Join Algorithm:
Remember:
Tolerance.
51
2. What are Graph Databases?
networks.
Understand:
security?
Apply:
NoSQL database?
Answer:
Use end-to-end encryption to encrypt data at rest and in transit.
52
2. What is the significance of Data Storage in Distributed
Databases?
Analyze:
stores.
Answer:
Document-based stores (like MongoDB) store data as documents
queries.
systems.
53
Evaluate:
applications.
relational databases.
Create:
Answer:
Products: { product_id, name, price, description, category_id }
54
2. Create a database encryption strategy for sensitive personal
Answer:
Use AES-256 encryption for sensitive fields (e.g.,
social_security_number).
55