IT 231: IT and Application
By the end of this session, you will be able to:
A Database Management System (DBMS) is a software program that enables users to create, maintain, and control access to a database.
Think of it like a librarian for a huge library:
It acts as an interface between users/applications and the physical database.
e.g., Website, Mobile App, Analyst
(The Manager)
e.g., Tables, Records, Files
The DBMS ensures data is consistently organized and easily accessible, preventing chaos.
A DBMS handles several critical tasks to manage the database effectively:
The DBMS uses a Data Definition Language (DDL) to build the database's structure.
This is how an administrator defines the "rules" for the data.
CREATE TABLE Students (
StudentID INT PRIMARY KEY,
FirstName VARCHAR(50),
LastName VARCHAR(50),
EnrollmentDate DATE
);
DDL is used to create tables, define fields, and set constraints.
A Data Manipulation Language (DML) allows users to work with the data.
For relational databases, the standard DML is SQL (Structured Query Language).
-- Retrieve data
SELECT * FROM Students;
-- Insert a new record
INSERT INTO Students VALUES (...);
-- Delete a record
DELETE FROM Students WHERE StudentID=101;
The DBMS acts as a security guard.
Ensures smooth operation in multi-user environments.
Protects data from loss due to system failures, errors, or disasters.
The DBMS provides tools to create periodic copies (backups) of the database.
If the system crashes, the DBMS can use the backups and transaction logs to restore the database to a consistent state.
This function is absolutely critical for business continuity.
Different systems are chosen based on cost, scale, and features.
How does a DBMS (like PostgreSQL or MySQL) power these services?
Any questions?