DEV Community

Mujahida Joynab
Mujahida Joynab

Posted on

Three Schema Architecture | Three Level of Abstraction | Database Management System

What is Three Schema Architecture?

Schema means **structure.

Structure means the way we organize the data we are storing (e.g., Student, Railway).

Example:

Raw Data → 1, A, 20

Same data in a table:

Roll Name Age
1 A 20

Here, Roll number is an integer (int) value.


There are three levels of data abstraction:

1. Conceptual Schema (Designer - Defines How Data is Stored - ER Model)

  • Defines the structure of the data.
  • Example: What tables and attributes will exist in the student database?

2. Physical Schema (Administrator - Manages Database Storage)

  • Defines how and where the data will be stored.
  • Example: Database administrators decide how student records are stored in MySQL, Oracle, or another database system.

3. External Schema (User - View Level - Limited Access)

  • Users can see and access only limited data but cannot modify or see the full database.
  • Example: A student can view their own exam results on the university website but cannot see other students' data.

Types of Database Files:

  1. Data Files – Store actual data (e.g., student records).
  2. Log Files – Keep track of changes made to the database.
  3. Index Files – Speed up searching and retrieving data.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay