Skip to content

Commit 1dfb97c

Browse files
docs: Add structured DBMS notes by Shiwans
1 parent fc6095f commit 1dfb97c

File tree

8 files changed

+106
-0
lines changed

8 files changed

+106
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Introduction to DBMS
2+
3+
## What is a DBMS?
4+
- DBMS stands for **Database Management System**.
5+
- It is software that allows users to create, manage, and manipulate databases.
6+
- Example: MySQL, Oracle, PostgreSQL, MongoDB.
7+
8+
## Why do we need DBMS?
9+
- To store data efficiently.
10+
- To ensure data consistency and security.
11+
- To provide easy access and sharing of data among multiple users.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Types of DBMS
2+
3+
1. **Hierarchical DBMS**
4+
- Data is organized in a tree-like structure.
5+
- Parent-child relationship.
6+
- Example: IBM Information Management System (IMS).
7+
8+
2. **Network DBMS**
9+
- Uses a graph structure with nodes and edges.
10+
- Allows many-to-many relationships.
11+
12+
3. **Relational DBMS (RDBMS)**
13+
- Data is stored in **tables (relations)**.
14+
- Uses SQL to interact with data.
15+
- Example: MySQL, PostgreSQL, Oracle.
16+
17+
4. **Object-oriented DBMS**
18+
- Stores data as objects (similar to OOP).
19+
- Supports complex data types like multimedia.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Key Concepts in DBMS
2+
3+
- **Table**: A collection of rows and columns.
4+
- **Row (Tuple)**: A single record in a table.
5+
- **Column (Attribute)**: A field that defines a property of data.
6+
- **Primary Key**: Uniquely identifies each record in a table.
7+
- **Foreign Key**: Links one table to another.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Normalization in DBMS
2+
3+
## What is Normalization?
4+
- Process of organizing data to reduce redundancy.
5+
- Improves efficiency and avoids anomalies.
6+
7+
## Forms of Normalization:
8+
- **1NF**: No repeating groups, atomic values.
9+
- **2NF**: 1NF + no partial dependency.
10+
- **3NF**: 2NF + no transitive dependency.
11+
- **BCNF**: Stronger version of 3NF.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ACID Properties
2+
3+
ACID ensures reliable database transactions:
4+
5+
1. **Atomicity** → All or nothing execution.
6+
2. **Consistency** → Data must remain valid before and after transaction.
7+
3. **Isolation** → Transactions execute independently.
8+
4. **Durability** → Changes remain permanent even after a crash.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Transactions in DBMS
2+
3+
- A **transaction** is a set of operations performed as a single logical unit.
4+
- Example: Money transfer between accounts.
5+
6+
## Transaction Commands:
7+
- **COMMIT** → Save changes permanently.
8+
- **ROLLBACK** → Undo changes.
9+
- **SAVEPOINT** → Save a point to rollback partially.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## SELECT
2+
SELECT name, age FROM Students;
3+
4+
## INSERT
5+
INSERT INTO Students (id, name, age) VALUES (1, 'Shiwans', 20);
6+
7+
## UPDATE
8+
UPDATE Students SET age = 21 WHERE id = 1;
9+
10+
## DELETE
11+
DELETE FROM Students WHERE id = 1;
12+
13+
14+
## USE CASES OF DBMS ##
15+
- **RDBMS (Relational)** → For structured data (banking, e-commerce).
16+
- **NoSQL DBMS** → For unstructured/large-scale data (social media, big data).
17+
18+
19+
20+
21+
## Popular DBMS ##
22+
- MySQL
23+
- PostgreSQL
24+
- MongoDB
25+
- SQLite
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# DBMS Notes by Shiwans
2+
3+
This folder contains beginner-friendly notes on **Database Management Systems (DBMS)**.
4+
5+
## Index
6+
1. [Introduction](01_Introduction.md)
7+
2. [Types of DBMS](02_Types_of_DBMS.md)
8+
3. [Key Concepts](03_Key_Concepts.md)
9+
4. [Normalization](04_Normalization.md)
10+
5. [ACID Properties](05_ACID_Properties.md)
11+
6. [Transactions](06_Transactions.md)
12+
7. [SQL Basic Commands](07_SQL_basic_commands.md)
13+
8. [README](08_README.md)
14+
15+
---
16+
> ✨ Contribution by **Shiwans Kumar Yadav**

0 commit comments

Comments
 (0)