A Database Management System (DBMS) is a software system designed to store, retrieve, and manage data. It ensures that data is stored securely, consistently, and is easily accessible to multiple users simultaneously.
Before the invention of DBMS, applications used File-Based Systems (storing data in simple .txt or .csv files). This caused massive problems:
A major purpose of a database system is to provide users with an abstract view of the data. That is, the system hides certain details of how the data is stored and maintained.
This abstraction allows developers to write SQL queries without needing to know whether the data is stored on a spinning hard drive, an SSD, or spread across 10 different servers.
To achieve this abstraction, the ANSI/SPARC committee proposed a standard framework for DBMS architecture, divided into three levels:
The lowest level of abstraction describes how the data is actually stored physically on the storage devices.
The next-higher level of abstraction describes what data is stored in the database, and what relationships exist among those data.
Students table with an ID (Integer) and a Name (String)."The highest level of abstraction describes only part of the entire database. It is what the end-user or the application actually sees.
The main objective of the three-schema architecture is Data Independence, which is the capacity to change the schema at one level of a database system without having to change the schema at the next higher level.