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
Entities and Attributes in DBMS
Entity kya hoti hai?
Entity ka matlab hota hai koi bhi real world cheez, person ya concept jiske baare mein hum data store karna chahte hain.
Simple shabdon mein, Entity = Noun (Naam wali cheez)
Jaise:
Student
Teacher
Car
Book
Course
Yeh sab cheezein alag-alag hoti hain aur inke baare mein hum database mein data store kar sakte hain.
Example:
Agar hum ek college ka database bana rahe hain to:
Student ek entity hoga
Book bhi ek entity hoga
Course bhi ek entity hoga
Attribute kya hota hai?
Attribute ka matlab hota hai entity ke features ya characteristics — yani us entity ke baare mein information.
Simple shabdon mein, Attribute = Adjective (Visheshan)
Jo entity ko describe karta hai.
Example:
Agar Student entity hai, to uske attributes ho sakte hain:
Student_ID
Name
Age
Gender
Course
Example Table: Student Entity ke Attributes
Student_ID | Name | Age | Gender | Course |
---|---|---|---|---|
101 | Riya Sharma | 20 | Female | B.Tech |
102 | Arjun Mehta | 22 | Male | B.Sc |
Entity: Student
Attributes: Student_ID, Name, Age, Gender, Course
Diagram – Entity aur Attributes
+-------------+
| Student | ← Entity
+-------------+
| Student_ID | ← Attribute
| Name |
| Age |
| Gender |
| Course |
+-------------+
Types of Entities
1. Strong Entity
Apne aap exist kar sakta hai
Primary key hoti hai
Example: Student, Employee
2. Weak Entity
Kisi aur entity pe depend karta hai
Apna unique key nahi hota
Example: Dependent (Employee ka baccha), Order_Item (Order ka part)
Types of Attributes
Attribute Type | Explanation (Hindi + English) | Example |
---|---|---|
Simple Attribute | Divide nahi ho sakta | Age, Salary |
Composite Attribute | Chhoti parts mein divide ho sakta hai | Name → First Name + Last Name |
Derived Attribute | Kisi aur value se calculate hota hai | Age (DOB se nikalte hain) |
Multi-valued Attribute | Ek se zyada values ho sakti hain | Phone Numbers (2 ya 3 ho sakte hain) |
Real-Life Example – Library System
Agar aap ek library ka DBMS bana rahe ho:
Entities:
Book
Member
Librarian
Book ke Attributes:
Book_ID, Title, Author, Price
Member ke Attributes:
Member_ID, Name, Contact, Email
Summary Table
Term | Matlab kya hai? | Example |
---|---|---|
Entity | Real world object jiska data store hota hai | Student, Book, Course |
Attribute | Entity ka feature ya property | Name, Age, Title, Salary |
Strong Entity | Independent hota hai | Student |
Weak Entity | Kisi aur entity pe dependent hota hai | Dependent |
Simple Attribute | Further divide nahi ho sakta | Salary |
Composite Attribute | Parts mein divide ho sakta hai | Full Name → First + Last |
Derived Attribute | Kisi aur data se calculate hota hai | Age |
Multi-valued Attribute | Ek se zyada values ho sakti hain | Phone Numbers |