Data Base System 3 + 4
Data Base System 3 + 4
SYSTEM
Lecture 3 +4
Instructor: Tayyba Khalid
Content
Introduction to Database History of Database System
What is Data? Database Approach
Data in Database Data Independence
Data Organization
Database Application
Meta Data
Database Management
System Database Management System
Database System Intro to DDL, DML, DCL
File-based System
Limitation of File-based
System
What is a DBMS?
■ A Database Management System (DBMS) is software that enables
users to create, manage, manipulate, and secure databases
efficiently.
■ It serves as an interface between the database and the end users or
application programs.
🔍 Purpose of a DBMS
1. Efficient Data Management
A DBMS allows for the storage, retrieval, and updating of data in an
organized manner.
2. Data Abstraction
Users interact with data at a high level without knowing how it's stored
internally.
3. Data Integrity and Accuracy
Ensures that the data entered into the database is valid, consistent,
and accurate through constraints and rules.
4. Data Security
Controls who can access or modify specific parts of the database
through authentication and authorization mechanisms.
5. Concurrent Access
Allows multiple users to access the database at the same time
without conflict, using transaction management and locking mechanisms.
6. Backup and Recovery
Provides features for automatic backup of data and recovery tools in
case of system failure or data loss.
7. Minimized Data Redundancy
Organizes data in such a way that duplicate entries are minimized,
saving storage and avoiding inconsistency.
8. Data Independence
Changes in the database structure (schema) do not affect how the data
is accessed or used by applications.
9. Support for Querying and Reporting
Users can write SQL queries to retrieve, sort, filter, and report data
quickly.
Purpose of DDL, DML, DCL:
•DDL: Create and modify the database structure without affecting existing data.
•DML: Access and manipulate existing data (add, remove, change, view).
. Banking:
■ Databases store customer information, account balances, transaction histories, and loan data. They handle
millions of transactions per day while ensuring accuracy, security, and compliance with financial regulations.
■ Example: A database processes thousands of credit card transactions every second, ensuring that each
transaction is recorded correctly.
2. Healthcare:
■ Databases manage patient records, medical histories, prescriptions, and appointments. They ensure that
healthcare providers have access to accurate patient data while maintaining confidentiality and compliance
with regulations like HIPAA.
■ Example: A hospital database stores and retrieves patient records and diagnostic results, enabling doctors to
make informed treatment decisions.
Examples
3. E-Commerce:
■ Databases manage product catalogs, customer orders, payment processing, and inventory
tracking. They provide real-time data for customer-facing websites and internal systems.
■ Example: An online store uses a database to store product details, track inventory levels, and
process customer orders in real time.
4. Education:
■ Educational institutions use databases to manage student information, grades, course
enrollments, and scheduling.
■ Example: A university database tracks student enrollments, course offerings, and academic
records.
Benefits of Views