






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These DBMS notes are designed specifically for university exams, vivas, and last-day revision. The content is explained in simple language, with a strong focus on important questions and concepts that are frequently asked in exams.
Typology: Summaries
1 / 12
This page cannot be seen from the preview
Don't miss anything!







Prepared by: SAMIKSHA Date created:
Jan 11, 2026
A Database Management System (DBMS) is software that allows users to store, retrieve, update, and manage data efficiently. It provides data security, consistency, and controlled access.
Reduced data redundancy Improved data integrity Data security and authorization Backup and recovery Concurrency control
Data independence Concurrency control Data security Backup and recovery Integrity constraints Multi-user access
โก Provides data abstraction and independence.
A data model defines how data is stored and accessed.
Types of Data Models
Hierarchical Model Network Model Relational Model Object-Oriented Model
The Relational Model is the most widely used.
Data stored in tables (relations) Rows โ tuples Columns โ attributes
Properties
Each table has a primary key No duplicate rows Atomic values
Keys uniquely identify records.
Types of Keys
Primary Key Candidate Key Super Key Foreign Key Composite Key Alternate Key
Used to modify table structure.
sql
ALTER TABLE Student ADD age INT
ALTER TABLE Student MODIFY name VARCHAR(100)
DROP
Deletes table permanently.
sql
DROP TABLE Student;
TRUNCATE
Deletes all records but keeps table structure.
sql
TRUNCATE TABLE Student;
Used to insert, update, and delete records.
INSERT
sql
INSERT INTO Student VALUES (1, 'Rahul', 88, 20);
UPDATE
sql
UPDATE Student SET marks = 90 WHERE id = 1;
DELETE
sql
DELETE FROM Student WHERE marks < 40;
Used to retrieve data.
SELECT with WHERE
sql
SELECT name, marks FROM Student WHERE marks > 75;
ORDER BY
sql
SELECT * FROM Student ORDER BY marks DESC;
DISTINCT
sql
SELECT DISTINCT marks FROM Student;
Used to manage transactions.
COMMIT ROLLBACK SAVEPOINT
sql
SAVEPOINT sp
ROLLBACK TO sp
COMMIT
Used to control access.
sql
SELECT s.name, c.course
FROM Student s
INNER JOIN Course c
ON s.id = c.sid;
Used to perform calculations.
COUNT() SUM() AVG() MIN() MAX()
sql
SELECT AVG(marks) FROM Student;
sql
SELECT dept, COUNT(*)
FROM Employee
GROUP BY dept
HAVING COUNT(*) > 3;
Difference:
WHERE โ filters rows
HAVING โ filters groups
A query inside another query.
sql
SELECT name
FROM Student
WHERE marks > (SELECT AVG(marks) FROM Student);
Process of minimizing redundancy.
Normal Forms
sql
CREATE INDEX idx_marks ON Student(marks);
Types:
Primary Index Secondary Index Clustered Index
3NF โ No transitive dependency BCNF โ Stronger than 3NF
15.functional dependency
sql
A โ B
A determines B.
16.Deadlock in DBMS
Mutual exclusion Hold and wait No preemption Circular wait
17.Concurrency Control
Locking Timestamp ordering Two-phase locking (2PL)
18.Recovery Techniques
Log-based recovery Checkpoints Shadow paging
19.DBMS vs RDBMS
DBMS RDBMS
No relationships User relationships
Less secure More secure
Small data Large data
Answers
27.Advantages of DBMS