DBMS
DBMS Part-1
- DBMS Introduction
- DBMS Architecture
- Database Approach vs Traditional File System
- Advantages of DBMS
- Data Models in DBMS
- Schemas in DBMS
- Instances in DBMS
- Data Independence in DBMS
- Database Languages in DBMS
- Interfaces in DBMS
- Structure of DBMS
- Functions of DBA and Designer
- Entities and Attributes in DBMS
- ER Diagram in DBMS
- Generalization, Specialization and Aggregation in DBMS
- Converting ER Diagram to Tables in DBMS
- Difference between Object Oriented, Network and Relational Data Models
DBMS Part-2
- Relational Data Model in DBMS
- Keys in DBMS
- SQL Introduction
- DDL(Data Definition Language)
- DML(Data Manipulation Language)
- Integrity Constraints in DBMS
- Complex SQL Queries
- Joins in DBMS
- Indexing in DBMS
- Triggers in DBMS
- Assertions in DBMS
- Relational Algebra in DBMS
- Tuple Relational Calculus in DBMS
- Domain Relational Calculus in DBMS
DBMS Part-3
- Introduction to Normalization in DBMS
- Normal Forms in DBMS
- Functional Dependency in DBMS
- Decomposition in DBMS
- Dependency Preserving Decomposition in DBMS
- Lossless Join Decomposition in DBMS
- Problems with Null Values and Dangling Tuples
- Multivalued Dependency in DBMS
- Query Optimization in DBMS
- Algorithms for Select, Project and Join Operations in DBMS
- Query Optimization Methods in DBMS
DBMS Part-4
- Transactions in DBMS
- Serializability in DBMS
- Recoverability in DBMS
- Recovery Techniques in DBMS
- Log Based Recovery in DBMS
- Checkpoint in DBMS
- Deadlock in DBMS
- Concurrency Control in DBMS
- Lock Based Protocol in DBMS
- Timestamp Based Protocol in DBMS
- Validation Based Protocol in DBMS
- Multiple Granularity in DBMS
- Multi-Version Concurrency Control(MVCC) in DBMS
- Recovery with Concurrent Transactions in DBMS
DBMS Part-5
Normalization in DBMS
Normalization kya hota hai?
Normalization ek process hoti hai jisme hum apne database ke data ko achhe se arrange karte hain taaki:
Data repeat na ho (Redundancy kam ho)
Data sahi tarike se store ho
Update, delete ya insert karna easy aur safe ho
Simple Words Mein:
Normalization ka matlab hai “Data ko properly todna aur alag tables mein store karna, taaki data repeat na ho aur galti na ho.”
Normalization ke Goals:
-> Duplicate data ko hataana (Redundancy kam karna)
-> Data clean aur consistent rakhna
-> Database ko efficient banana
-> Insertion, update aur delete mein problems (anomalies) se bachna
Without Normalization Example
Student_ID | Student_Name | Course | Course_Fees |
---|---|---|---|
101 | Rahul | DBMS | 4000 |
101 | Rahul | OS | 4500 |
102 | Priya | DBMS | 4000 |
Problems:
Student ka naam repeat ho raha hai
DBMS ka fee 2 jagah likha hai – agar change karna ho toh dono jagah update karna padega
With Normalization (Data neatly arranged)
Data ko 3 alag tables mein tod diya:
1. Students Table
Student_ID | Student_Name |
---|---|
101 | Rahul |
102 | Priya |
2. Courses Table
Course | Course_Fees |
---|---|
DBMS | 4000 |
OS | 4500 |
3. Enrollment Table
Student_ID | Course |
---|---|
101 | DBMS |
101 | OS |
102 | DBMS |
Ab agar kisi course ka fee change karna ho, toh sirf ek jagah change karna padega. Easy & clean!
Normalization zaroori kyun hai?
Socho agar tumhare paas ek university ka database hai:
Har student ka data baar-baar likhna padega
Agar ek choti si galti ho gayi (jaise fee galat likh diya), toh sab gadbad ho sakta hai
Data ka update karna mushkil ho jaata hai
3 Types of Problems (Anomalies) Without Normalization
Insertion Anomaly – Naya course tabhi add kar sakte ho jab koi student usme ho.
Update Anomaly – Ek choti si change har jagah manually karni padti hai.
Deletion Anomaly – Agar ek student delete ho gaya toh uska course ka data bhi delete ho jaata hai.
Normal Forms (Normalization ke Levels)
Normalization step by step hoti hai. Har step ko bolte hain Normal Form:
Normal Form | Kya karta hai? |
---|---|
1NF | Data ko todta hai aur repeating values hataata hai |
2NF | Composite key ki dependency ko todta hai |
3NF | Transitive dependency hataata hai |
BCNF | 3NF se bhi zyada strict rule lagata hai |
Ye levels hum alag lesson mein detail se samjhenge. Abhi ke liye samjho ki ye steps hai clean data tak pahunchne ke.
Normalization Process Diagram
Unnormalized Table
↓ (1NF Apply karo)
First Normal Form (1NF)
↓ (2NF Apply karo)
Second Normal Form (2NF)
↓ (3NF Apply karo)
Third Normal Form (3NF)
↓ (Optional - Advance)
Boyce-Codd Normal Form (BCNF)
Summary:
Normalization = Data ko theek se todna aur organize karna
Redundancy kam hoti hai
Data safe aur clean rehta hai
Update, Insert, Delete easy aur consistent ho jaate hain