0
0
DBMS Theoryknowledge~10 mins

Data abstraction levels in DBMS Theory - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Data abstraction levels
User View
Logical View
Physical View
Data Storage
Data abstraction in DBMS separates how data is seen by users, how it is logically organized, and how it is physically stored.
Execution Sample
DBMS Theory
N/A
This concept shows how data is viewed and managed at different levels in a database system.
Analysis Table
StepAbstraction LevelDescriptionExampleUser Interaction
1User View (External)Shows only relevant data to usersA customer sees only their account infoUser queries data they need
2Logical View (Conceptual)Defines structure and relationships of all dataDatabase schema with tables and relationsDBA designs and manages schema
3Physical View (Internal)How data is stored on hardwareData files, indexes on diskDBMS manages storage details
4Data StorageActual bytes on disk or memoryBits and bytes in storage devicesInvisible to users and admins
5EndAll levels work together to provide data accessUser queries → DBMS translates → storage accessedSystem processes user requests
💡 Process ends after data is retrieved from physical storage and presented at user view.
State Tracker
LevelDescriptionVisibility to UserManaged By
User ViewData seen by end usersVisibleDBMS Interface
Logical ViewData structure and schemaHiddenDatabase Administrator
Physical ViewData storage detailsHiddenDBMS Storage Engine
Data StorageRaw data on diskHiddenHardware and OS
Key Insights - 3 Insights
Why can't users see the physical storage details?
Users only interact with the User View level (see execution_table row 1). Physical storage is complex and managed by the DBMS to simplify user experience.
How does the logical view help in managing data?
Logical view (row 2) defines the structure and relationships, so changes in physical storage don't affect how users see data.
What happens if physical storage changes?
Physical changes are handled internally by DBMS (row 3 and 4), so users and applications continue working without change.
Visual Quiz - 3 Questions
Test your understanding
According to the execution_table, which level shows only the data relevant to a user?
AUser View
BLogical View
CPhysical View
DData Storage
💡 Hint
Check execution_table row 1 for the description of User View.
At which abstraction level does the database schema exist, as per the execution_table?
AUser View
BLogical View
CPhysical View
DData Storage
💡 Hint
Look at execution_table row 2 describing Logical View.
If the physical storage changes, which level ensures users are unaffected?
AUser View
BData Storage
CLogical View
DPhysical View
💡 Hint
Refer to key_moments answer about logical view hiding physical changes.
Concept Snapshot
Data abstraction in DBMS has three main levels:
1. User View: What users see, only relevant data.
2. Logical View: Overall database structure and schema.
3. Physical View: How data is stored on hardware.
This separation hides complexity and allows independent changes.
Full Transcript
Data abstraction levels in a database management system separate how data is presented and managed. The User View shows only the data relevant to each user, hiding unnecessary details. The Logical View defines the overall structure and relationships of data, like tables and schemas, managed by the database administrator. The Physical View handles how data is actually stored on disks or memory, managed by the DBMS internally. This layered approach allows users to access data easily without worrying about storage details, and lets the system change storage methods without affecting users or applications.