Database Management Systems (DBMS)
Database Management Systems (DBMS)
1. Introduction
A Database Management System (DBMS) is software that enables users to store, retrieve,
manage, and manipulate data efficiently. Databases are essential in modern computing,
supporting applications in banking, e-commerce, healthcare, social media, and more. A
DBMS helps in organizing data, ensuring security, maintaining integrity, and enabling
concurrent access by multiple users.
This lecture note explores the fundamental concepts of DBMS, including database
architecture, data models, normalization, query languages, transactions, and security.
A database is a structured collection of data that allows efficient storage, retrieval, and
management. Unlike simple file systems, databases provide advanced mechanisms to handle
large volumes of data while ensuring security and consistency.
Popular DBMS software includes MySQL, PostgreSQL, Oracle, Microsoft SQL Server,
and MongoDB.
3. Database Architecture
DBMS architecture defines how data is stored, managed, and accessed. It can be classified
into:
Adds a middle layer (Application Server) between the client and database.
Enhances security, scalability, and flexibility.
Example: Web Applications (Front-end → Application Server → Database).
Data is stored in tables (relations) with rows (tuples) and columns (attributes).
Uses keys (Primary Key, Foreign Key) to maintain relationships.
Example: MySQL, PostgreSQL.
Normalization Forms
1st Normal Form (1NF): Eliminates duplicate columns; each column contains atomic
values.
2nd Normal Form (2NF): Ensures each column depends on the whole primary key.
3rd Normal Form (3NF): Ensures columns depend only on the primary key, not
other columns.
Boyce-Codd Normal Form (BCNF): Strengthens 3NF by handling anomalies.
Create a Table:
CREATE TABLE Students (
ID INT PRIMARY KEY,
Name VARCHAR(50),
Age INT
);
Insert Data:
INSERT INTO Students (ID, Name, Age) VALUES (1, 'Alice', 22);
Retrieve Data:
SELECT * FROM Students;
Update Data:
UPDATE Students SET Age = 23 WHERE ID = 1;
Delete Data:
DELETE FROM Students WHERE ID = 1;
11. Conclusion
Database Management Systems (DBMS) are essential for efficient data management. From
relational databases using SQL to NoSQL databases for large-scale applications, DBMS
technologies continue to evolve. Understanding the fundamentals of database architecture,
data models, normalization, SQL, transactions, and security helps in building robust and
scalable applications.