Data Modeling in a Database Management System
Data Modeling in a Database Management System
What it is: This is what the user sees. It defines how data is presented to
individual users or applications.
Purpose: Provides customized views of the database for different users.
Example: A customer might see their purchase history, while a manager
sees sales reports. Both are accessing the same database but in different
ways.
What it is: This is the middle layer that represents the entire database
logically. It defines what data is stored, the relationships between data,
and the rules or constraints applied.
What it is: This is the lowest level and deals with how data is actually
stored on the hardware.
Purpose: Handles storage structures, file systems, and optimization for
performance.
Example: Data stored in files, indexes, or partitions on a hard disk.
COMPONENTS OF DBMS
A Database Management System (DBMS) has several key components that work together to
store, manage, and retrieve data efficiently. Here's a simple explanation of the main components:
1. Database
2. DBMS Software
3. Query Processor
What it is: A component that interprets and executes user queries (written in SQL).
Purpose: Ensures the database understands what data the user wants and retrieves it
efficiently.
Example: When you write SELECT * FROM Customers, the query processor handles
this.
4. Database Engine
What it is: The core service for storing, managing, and processing data.
Purpose: Handles tasks like data storage, retrieval, and modification.
Example: When you insert or update a record, the database engine makes it happen.
5. Data Dictionary
6. User Interface
8. Transaction Manager
What it is: A system for creating copies of data and restoring it when needed.
Purpose: Protects data against loss or corruption.
Example: A backup system ensures you can recover customer records after a server
failure.
What it is: Controls who can access the database and what they can do.
Purpose: Protects the database from unauthorized access.
Example: Only allowing the HR team to view employee salary details.