RelationalDBDesign RelationalDBDesign


DB Life Cycle   «Prev  Next»

Three-Schema Architecture

The Three-Schema Architecture, also known as the ANSI/SPARC architecture, is a foundational framework used to design and manage databases. Its primary goal is to separate user applications from the physical database, which achieves data independence. This separation makes systems more flexible, scalable, and easier to maintain. 🚀

The Three Levels of Abstraction

1. External Schema (View Level)

This is the highest level of abstraction, defining how specific users or applications see the data. An external schema presents a tailored "view" that shows only the relevant parts of the database, simplifying interaction and enhancing security. A single database can have many external schemas.

2. Conceptual Schema (Logical Level)

The conceptual schema is a unified, logical representation of the entire database. It describes all the entities (e.g., tables), attributes (e.g., columns), relationships, and integrity constraints. This level hides the physical storage details, focusing on the overall data model. There is only one conceptual schema per database.

3. Internal Schema (Physical Level)

This schema describes how the data is physically stored on hardware. It defines the low-level details like file structures, indexes (e.g., B-trees), data compression, and storage access paths. Its goal is to optimize performance and storage efficiency. There is only one internal schema per database.


Data Independence: The Core Benefit

The separation of these schemas provides two crucial types of data independence:


How It Connects: Mappings

The Database Management System (DBMS) acts as a referee, managing the mappings between these levels to ensure everything works together seamlessly.
The DBMS uses these mappings to find the physical data a user requests and to ensure that all operations are consistent with the defined rules and constraints.
A diagram of the Three-Schema Architecture, showing the separation between external views, a central conceptual schema, and the internal physical schema.
The Three-Schema Architecture, showing the separation between user views, the logical model, and physical storage.

Relevance in Modern Systems

While originally conceived for relational databases, the principles of the three-schema architecture are more relevant than ever in today's complex technology landscape.


SEMrush Software 6 SEMrush Banner 6