Database Management System

Learn DBMS concepts in a structured and simple way ๐Ÿš€

A Database Management System (DBMS) is software that allows users to store, manage, and retrieve data efficiently while ensuring security and consistency.

๐Ÿ“Œ What is a Database?

Structured collection of data stored electronically.

๐Ÿ“Š Types of Databases

Relational (MySQL) and NoSQL (MongoDB).

๐Ÿง  ER Model

Entities, attributes, and relationships in database design.

๐Ÿ”‘ Keys

Primary, Foreign, and Candidate keys.

โš™๏ธ Normalization

Removes redundancy and improves consistency.

๐Ÿงพ SQL

Language used to manage databases.

๐Ÿ—„๏ธ Complete DBMS Notes

๐Ÿง  Core Idea of Database

๐Ÿ—๏ธ Structure of Database

Tables (Relations), Rows (Tuples), Columns (Attributes)

Roll No Name Dept GPA
101 Ali CS 3.5
102 Sara SE 3.8

โš™๏ธ Characteristics

๐Ÿงฉ Types of Databases

๐Ÿ”— ER Diagram

Entities = objects, Attributes = properties, Relationships = connections

Example: Student โ†’ Enrolls โ†’ Course

๐Ÿ”‘ Keys

โš™๏ธ Normalization

๐Ÿ’ป SQL Queries


SELECT * FROM Student;

INSERT INTO Student (RollNo, Name)
VALUES (101, 'Ali');

UPDATE Student
SET Name = 'Ahmed'
WHERE RollNo = 101;

DELETE FROM Student
WHERE RollNo = 101;
    

๐Ÿ”— JOIN Example


SELECT Student.Name, Marks.Score
FROM Student
INNER JOIN Marks
ON Student.RollNo = Marks.RollNo;
    

๐Ÿš€ Why DBMS Matters

DBMS is used in banking systems, social media apps, e-commerce platforms, and university management systems.