0
0
DBMS Theoryknowledge~10 mins

Three-schema architecture (external, conceptual, internal) in DBMS Theory - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Three-schema architecture (external, conceptual, internal)
User View (External Schema)
Community View (Conceptual Schema)
Physical Storage (Internal Schema)
Data Files
Data flows from what users see, through a shared community view, down to how data is physically stored.
Execution Sample
DBMS Theory
User queries -> External schema
External schema maps -> Conceptual schema
Conceptual schema maps -> Internal schema
Internal schema accesses -> Physical storage
Shows how a user query moves through the three layers to access stored data.
Analysis Table
StepLayerActionResult
1External SchemaUser sends query based on personal viewQuery received with user-specific format
2External to ConceptualMap user query to community data modelUnified query for all users
3Conceptual to InternalTranslate community model to physical storage detailsAccess plan for data retrieval
4Internal SchemaRetrieve data from physical storageRaw data fetched from disk
5Internal to ConceptualConvert raw data to community model formatStructured data ready
6Conceptual to ExternalConvert structured data to user viewUser-friendly result prepared
7External SchemaSend result to userUser receives data in expected format
💡 Data successfully retrieved and presented to user through all three schema layers
State Tracker
VariableStartAfter Step 2After Step 4After Step 6Final
Query/Data FormatUser formatCommunity formatPhysical storage formatCommunity formatUser format
Data LocationUser deviceConceptual modelDisk storageConceptual modelUser device
Key Insights - 3 Insights
Why do we need three different schemas instead of just one?
Because users see data differently (external), the organization needs a unified model (conceptual), and data must be stored efficiently (internal). See execution_table steps 1, 2, and 3.
How does the system keep user views separate from physical storage details?
By mapping queries and data through the external and conceptual schemas before reaching the internal schema, as shown in execution_table steps 2 and 3.
What happens if the physical storage changes?
Only the internal schema changes; the conceptual and external schemas stay the same, so users are unaffected. This is implied in the separation shown in the concept_flow.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, at which step is the user query translated into a community-wide data model?
AStep 1
BStep 2
CStep 3
DStep 4
💡 Hint
Check the 'Action' column in execution_table row for Step 2.
According to variable_tracker, what is the data format after Step 4?
APhysical storage format
BCommunity format
CUser format
DUnchanged
💡 Hint
Look at 'Query/Data Format' variable after Step 4 in variable_tracker.
If the physical storage changes, which schema layer must be updated to keep user views unchanged?
AExternal schema
BConceptual schema
CInternal schema
DAll three schemas
💡 Hint
Refer to key_moments explanation about physical storage changes.
Concept Snapshot
Three-schema architecture separates DBMS into:
- External schema: user views
- Conceptual schema: unified community model
- Internal schema: physical storage details
This separation allows flexibility and data independence.
Full Transcript
The three-schema architecture organizes database systems into three layers. The external schema is what each user sees, tailored to their needs. The conceptual schema is a unified model representing the entire database for the organization. The internal schema deals with how data is physically stored on disks. When a user sends a query, it passes from the external schema to the conceptual schema, then to the internal schema to access data. The data then flows back through these layers, converting formats at each step, so the user receives data in their expected view. This separation helps keep user views independent from physical storage changes, making the system flexible and easier to maintain.