DBMS-Intro
DBMS-Intro
defined as an
Database
organized collection
OrganizeD: Data is stored in a well-structured format — usually
of data in tables, with rows and columns .
File OrganizatiOn in
DbMs
Data/CharaCter
File
•Smallest unit of file organization.
•A collection of related records (like all
•Example: S, o, n, i, a (characters in the name
students in a class).
"Sonia").
•Also called a relation or table.
FielD / Data iteM •Example: The table Student holds many
•A set of characters representing one specific detail. records like Sonia’s
•Example:
•Roll Number = 20 Database
•Name = Sonia •A collection of related files.
•Age = 14 •Highest level of data organization.
•Marks = 90 •Example: A School Database may include
files/tables like:
reCOrD •Student
•A collection of fields. •Teacher
•One record = all data for one person or item. •Class
•Example: A student record → 20, Sonia, 14, 90 •Result
real-liFe Use Cases OF
Databases
aPPliCatiOn Data stOreD
Banking Account details, loans, transactions
Crop Loan Farmer data, land info, loan history
Inventory Management Product & delivery details
Organization Resource
Employee and department data
Management
Online Shopping User preferences, item descriptions
rOle OF a Database
ManageMent systeM (DbMs)
Data inCOnsistenCy
Data reDUnDanCy •Definition: When one copy of the
Same data is stored in multiple places. data is updated but others are not.
•Example: A customer’s name and •Example: A student’s phone number
address are stored separately in the is changed in the fee file, but still
billing system, order file, and delivery log. shows the old number in the exam
records.
neeD FOr DbMs
1.Data Consistency
• Ensures that all users see the same updated data.
• If data is changed in one place, it's automatically updated everywhere.
• Maintains uniform and accurate data across the system.
3. Sharing of Data
•Multiple users and applications can access and use the same data.
• Avoids the need to create separate copies for different users.
aDvantages OF DbMs
4.Reduced Programming Effort
•Easier and less coding needed for managing data.
• Developers don’t need to write complex programs to handle basic data tasks.
•Simplifies query processing, updates, and data manipulation.
8.Economical
•Reduces costs by centralizing data and reducing duplication.
•Saves money on storage, processing, and maintenance.
•More efficient resource usage.
Data Abstraction is the process of hiding the complex details of how data
is stored and organized and presenting only the essential features to the user.In
simpler way, Users interact with data at a higher level without worrying
about how it's stored, accessed, or managed.
Example:??
levels OF Data abstraCtiOn
Data abstraction typically involves three levels:
1.Physical Level: How data is physically stored (in memory, on disk).
2.Logical Level: What data is stored and how it is organized (tables, relationships).
3.View Level: The user's specific perspective of the data, which may only show part
of the data.
Example: Google Maps
•View Level: When you open Google Maps, you see a map with your location and nearby
places like restaurants or routes. This is what you need to see to navigate, and you don’t see
all the extra details.
•Logical Level: Google Maps organizes data like addresses and routes in a database, but
you don’t need to know how it’s organized or structured.
•Physical Level: Google Maps uses servers and storage to store all the maps and location
data. You don’t see or need to know about how this is managed.
Data inDePenDenCe
Data independence means you can change the database at one level
without affecting other levels. This makes databases easier to maintain,
update, and scale.