Table of contents
1.
Introduction
2.
Three Schema Architecture
2.1.
External Schema
2.2.
Conceptual schema
2.3.
Internal schema 
3.
DBMS Instance
4.
Creating Schema in DBMS
5.
Database Schema Designs
6.
Advantages of Three Schema Architecture
7.
Disadvantages of Three Schema Architecture
8.
Frequently Asked Questions
8.1.
What is the First-tier architecture of DBMS?
8.2.
How many layers are there in a three-layer architecture database?
8.3.
Which schema describes the whole structure of the database?
8.4.
What is the function of the three-schema architecture?
8.5.
What are some of the advantages of the three schema architecture?
9.
Conclusion
Last Updated: Feb 28, 2025
Medium

Three Schema Architecture of DBMS

Author Rinki Deka
1 upvote
Career growth poll
Do you think IIT Guwahati certified course can help you in your career?

Introduction

 Database Management System is one of the most important topics for coding interviews. The three schema design arranges software systems in database management systems (DBMS). The three-schema architecture divides the data in a database into an external  layer, a conceptual layer, and an internal layer. 

three schema architecture of dbms

The three schema architecture of DBMS separates its conceptual and physical layers. Because of this, modifications can be made to one layer without affecting the other layers. Let’s now dive into the concept behind the three schema architectures of DBMS and understand every layer of it in detail.

Three Schema Architecture

In database management system (DBMS), schema refers to the logical aspect or logical structure of the Database, which tells us about how data is stored and accessed. Architecture refers to the overall design and organization of the database. The three schema architecture separates the logical and physical aspects of the DBMS. This allows changing one layer of the database without affecting the other layers. It also helps to maintain data integrity and consistency.

The three layers of a three-schema architecture are:

  • External layer 
  • Conceptual layer
  • Internal layer 
three schema architecture

External Schema

In DBMS, the External layer provides a logical view of the database. The External layer is the database portion that users can access and use. It is the topmost layer designed to provide a user-friendly database interface. 

Let us understand this through an example of an Employee Management system, where an employee login into the system, and the system shows the employee’s details.

External Schema

Conceptual schema

The Conceptual schema is the database section that tells the difference between all the different data sets. It represents the structure of a database. In an employee database, it describes columns or attributes of the table.

It can also be called a high-level representation of a database. The conceptual schema is mostly represented by the Entity-relationship Model ( ER Model ), which uses symbols to represent the data elements and relationships visually for a specific system. In an ER Model, the database is represented by ER Diagram.

Now Let us consider the Employee management system. The ER Diagram for the system would look like the following.

ER Diagram

This ER Diagram illustrates the relationships among the Employee, Department, Employee's Role, and Login System.

Internal schema 

The Internal schema, also known as Physical Schema, is a database section where all the data is kept and arranged. Here we need to decide where data should be stored and how it should be stored. 

The Key Features of Internal Schema include the following.

  • It determines how the data is stored in the database.
     
  • It creates indexes to the data so the records can be accessed quickly.
     
  • It compresses the data in a form such that the quality of data is not lost and it takes up less space.
     
  • It divides large tables into smaller partitions for better management and performance.
     
  • It also includes security features so the data is never breached or hacked.

Also See, File System vs DBMS

DBMS Instance

We are considering an Online Employee Management system to be our database. The database schema is created before creating the database. So that in future, if we make any change to one layer, it doesn’t affect the other layers. DBMS instance refers to the information in our database at any instance or time. 

For Example, at any instance database could look like the figure shown below.

employee data

Creating Schema in DBMS

Some steps in creating a schema in DBMS include:

  • Determining what kind of data is to be stored in the database.
     
  • Once the purpose of the database is determined, the next step is to define the tables.
     
  • Within each table, our next step is to define the columns of the tables.
     
  • Each column has a data type specifying the information that will be kept there. Dates, numbers, and text are some of the data kinds.
     
  • There are relationships between the tables in the database that must be defined.

Also read, Recursive Relationship in DBMS

Database Schema Designs

The process of developing a structure for storing and organizing data in a database is known as database schema design. Following are some of the database schema designs:

  • Hierarchical schema design arranges data in a binary tree-like structure.
     
  • Network schema design allows for more complex relationships, where each record can have multiple parent and child records.
     
  • Relational schema design organizes data into tables with rows and columns.
     
  • Dimensional schema design uses a star schema to organize data into fact tables and dimension tables.

Advantages of Three Schema Architecture

There are several benefits to using a three-schema architecture in DBMS. Some of these benefits include:

  • One of the main advantages of a DBMS's three schemas is its data independence. All three layers are distinct from each other. So we can make changes to one layer without affecting other layers.
     
  • Each schema can scale independently, which can enhance the performance of the database and manage more traffic at the same time.
     
  •  It is simpler to maintain and change each layer individually in a three-schema design due to the separation of the layers.

Disadvantages of Three Schema Architecture

Despite many benefits of three schema architecture, there are a few disadvantages of it:

  • This method can be difficult and expensive for big companies because it takes a lot of work to set up and maintain.
     
  • It can also cause slow-downs and mistakes if the data is not converted correctly between the different parts. 
     
  • Sometimes, it can also be hard to make sure only the right people can access sensitive information.
     

Also see, Checkpoint in DBMS

Frequently Asked Questions

What is the First-tier architecture of DBMS?

First-tier architecture is the simplest architecture of a database. In this architecture client, server, and database are all present on the same machine.

How many layers are there in a three-layer architecture database?

The three layers of a three-schema architecture are the External layer, the Conceptual layer and the Internal layer.

Which schema describes the whole structure of the database?

The conceptual schema of the database describes the whole structure of the database that is present between the physical layer and the external layer.

What is the function of the three-schema architecture?

The main goal of three schema architecture is to keep the user view distinct from the logical and physical schemas.

What are some of the advantages of the three schema architecture?

The three schema architecture has many advantages, including simpler database management and maintenance, more security, and greater flexibility.

Conclusion

This article discusses the topic of three schema architecture of DBMS. We hope this blog has helped you enhance your knowledge of the three schema architecture. If you want to learn more, then check out our articles.

And many more on our platform Coding Ninjas Studio.

Refer to our Guided Path to upskill yourself in DSACompetitive ProgrammingJavaScriptSystem Design, and many more! If you want to test your coding ability, you may check out the mock test series and participate in the contests hosted on Coding Ninjas Studio!

But suppose you have just started your learning process and are looking for questions from tech giants like Amazon, Microsoft, Uber, etc. In that case, you must look at the problemsinterview experiences, and interview bundles for placement preparations.

You can also consider our Database Management Course to give your career an edge over others!

Happy Learning!

Live masterclass