Data Abstraction
- Database systems include complex data structures.
- developers use abstraction To make the system
- make the system efficient in data retrieval
- reduce complexity for users by hiding irrelevant details.
- Keep away the complex data from the user and remove the complications
- So that the user can comfortably access the data they want
- The main purpose of data abstraction is to hide irrelevant data and provide an abstract view of the data.
- With the help of data abstraction, developers hide irrelevant data from the user and provide them the relevant data.
- By doing this, users can access the data without any trouble, and the system will also work efficiently
- In DBMS, data abstraction is performed in layers which means there are levels of data abstraction.
Levels of Data Abstractions in DBMS
1. Physical or Internal Level:
- The physical or internal layer is the lowest level of data abstraction in DBMS
- It is the layer that defines how data is actually stored in the database.
- It defines methods to access the data in the database
- where the data is actually stored, the actual location of the data that is being stored by the user.
- DBA decide that which data should be kept at which particular disk drive, how the data has to be fragmented, where it has to be stored etc.
- They decide if the data has to be centralized or distributed.
- data here is actually stored in the form of files only.
- The DBA’s role is to manage the data in the database at the physical or internal level.
2. Logical or Conceptual Level:
- The logical or conceptual level is the intermediate or next level of data abstraction.
- After taking the raw data from internal level, the structure of data is defined at logical level.
- It explains,
- what data is to be stored in the database
- relationship is between them.
- describes the structure of the entire data in the form of tables
- The logical level or conceptual level is less complex than the physical level.
- With the help of the logical level, Data Administrators (DBA) abstract data from raw data present at the physical level.
3. View or External Level:
- View or External Level is the highest level of data abstraction.
- There are different views at this level That define the parts of the overall data of the database.
- This level is for the end-user interaction
- at this level, end users can access the data based on their queries.
- He/she does not get the entire database, but depending on the queries made from the front-end the user gets to see the data.
- It may be a single data from the entire database or a collection of data in tabular format.
- Multiple views of the same data are available to the user
- the representation can be a table, a graph, or a pie chart.
