In early file processing systems, whenever an engineer altered a data record format on tape, every single software application reading that file had to be recompiled and rewritten.
The ANSI/SPARC framework solved this fatal coupling in 1975 by defining the Three-Schema Database Architecture.
1. The Three Schema Tiers
- External Schema (View Level): Describes the subset of the database relevant to a specific user group or application. A database typically hosts many external schemas, each masking sensitive columns.
- Conceptual Schema (Logical Level): Describes the entire logical structure of the database—all entity types, attributes, relationships, user operations, and integrity constraints. There is strictly one conceptual schema per database.
- Internal Schema (Physical Level): Describes the physical storage structure—record formats, block allocation, page sizes, B-Tree indices, hashing paths, and compression.
2. Physical Data Independence
Physical Data Independence is the capacity to modify the internal schema without having to alter the conceptual schema or application programs.
- Examples: Adding a secondary B+ Tree index, moving tables to faster NVMe flash storage, or reorganizing page fill factors.
3. Logical Data Independence
Logical Data Independence is the capacity to modify the conceptual schema without having to change external schemas or rewrite user queries.
- Examples: Adding a new attribute to an entity, or decomposing a table during normalization. If an application accesses data through an external view, its queries remain valid.
Explore our full interactive DBMS curriculum on Binary Dose.
Top comments (0)