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
Dependency Preserving Decomposition in DBMS
Jab hum kisi relation (yaani table) ko normalization ke process mein chhoti-chhoti tables mein todte hain, toh humein ye ensure karna hota hai ki koi bhi important rule (Functional Dependency) loss na ho.
Dependency Preserving Decomposition ka matlab:
Jab hum table ko todte hain, toh jo functional dependencies (FDs) pehle wali table mein thi, wo sab new tables mein bhi apply ho paayein — bina join kiye.
Kyun zaroori hai?
Agar decomposition dependency preserve nahi karti, toh kuch rules tab tak apply nahi ho paate jab tak aap tables ko dobara join na karo. Ye slow aur inefficient hota hai.
Example se Samjhte Hain:
Original Table: Student
RollNo | Name | Dept | HOD |
---|---|---|---|
101 | Raj | CSE | Dr. Mehta |
102 | Priya | ECE | Dr. Sharma |
Functional Dependencies (FDs):
RollNo → Name, Dept
Dept → HOD
Ab Decomposition karo:
R1(RollNo, Name, Dept)
R2(Dept, HOD)
Check karo:
RollNo → Name, Dept
R1 mein hai → PreservedDept → HOD
R2 mein hai → Preserved
Dono dependencies new tables mein exist karti hain.
Isliye, Dependency Preserving Decomposition hai.
Jab Dependency Preserve Nahi Hoti:
Original Table:
R(A, B, C)
FDs:
A → B
B → C
Decomposition:
R1(A, B)
R2(A, C)
Check karo:
A → B
R1 mein haiBut
B → C
kisi bhi table mein nahi hai
B → C
ko preserve karne ke liye R1 aur R2 ko join karna padega.
Isliye ye dependency preserving nahi hai.
Dependency Preserve karne ka fayda:
-> Functional rules ko asaani se apply kar sakte ho
-> Joins ki zarurat nahi padti
-> Database design efficient aur clean banta hai
Summary Table
Term | Simple Explanation |
---|---|
Functional Dependency | Ek column (ya columns) ka rule, jo dusre column ko define karta hai |
Decomposition | Badi table ko chhoti tables mein todna |
Dependency Preserving | Sabhi rules (FDs) new tables mein bhi kaam karein |