×

Levels of Abstraction in DBMS

Data abstraction is a way to hide unwanted or irrelevant information from the end user in DBMS. It helps in enhancing the security of data, and simplifies database design using different levels. In this article we are going to discuss what are different levels of abstraction in DBMS. Firstly, let’s start with the brief introduction of DBMS.

Introduction to DBMS

A database management system (DBMS) is a software application that interacts with the user, other applications, and the database itself to capture and analyze the data. A DBMS allows users to create, read, update, and delete (CRUD) data in a database.

Some common functions of a DBMS include:

  • Storing data in a structured format such as tables or objects.
  • Providing a way to search for and retrieve specific data from the databases.
  • Ensuring the integrity and security of the data including controlling access to the data and backing up the data to prevent loss.
  • Providing tools for organizing and analyzing the data such as reporting and data mining.
Levels of Abstraction in DBMS

Fig 1.1: DBMS structure

There are different types of DBMS, ranging from small systems that run on personal computers to large, complex systems that support the data needs of large organizations. Some examples of DBMSs include MySQL, Oracle and Microsoft SQL Server.

Characteristics of DBMS

Some key characteristics of a DBMS include:

  1. Data independence: A DBMS allows the data to be separated from the application that uses it, which means that changes to the data or to the application do not affect each other.
  2. Data security: A DBMS includes features to ensure that the data is protected from unauthorized access or modification.
  3. Data integrity: A DBMS ensure that the data is accurate, consistence and complete. It also provides mechanisms to detect and correct errors in the data.
  4. Data manipulation: A DBMS provides tools and languages for adding, modifying and deleting data in the database.
  5. Data concurrency: A DBMS allows multiple users to access and modify the data simultaneously without conflicts.

Levels of Abstraction in DBMS

In a database management system (DBMS), there are several levels of abstraction that are used to represent and manage data. These levels of abstraction include:

Levels of Abstraction in DBMS

Fig 1.2: Level of Abstraction in DBMS

  1. Physical level: This is the lowest level of abstraction in a DBMS and it deals with the storage and retrieval of data on the physical storage medium such as a hard drive or SSD. The physical level involves the organization of data into structures such as files and indexes and the use of techniques such as file mapping and buffering to optimizing data access.

    At the physical level, the DBMS must manage the allocation of space on the storage medium, which involves dividing the available space into blocks or pages and allocating these blocks or pages to the different data structure that make up the database. The DBMS must also handle issues such as file fragmentation, which occurs when the data is stored in non-contiguous blocks on the storage medium.
  2. Logical level: This level of abstraction deals with the logical representation of the data independent of the physical storage of the data. The logical level defines the structure of the data including the data types, attributes, and relationships between data entities.

    For example, the DBMS might define a “customer” entity with attributes such as “customer_id”, “name” and “address” and a “purchase” entity with attributes such as “purchase_id”, “customer_id” and “purchase_id”, “customer_id” and “purchase_date”. The DBMS would also define the relationship between these two entities such that each customer can have multiple purchases, but each purchase is associated with a single customer.
  3. View level: This level of abstraction deals with the way that the data is presented to the user or application. A view is a virtual table that is created based on a SELECT statement and it can be used to present the data in a particular way, or to hide certain data from the user.

    For example, the DBMS might provide a user interface that allows the user to browse and search the data or it might provide a set of predefined queries that the user can use to retrieve specific subsets of data. The DBMS might also provide tools for importing and exporting data, as well as for creating and modifying the data structure and relationships with in the database.
  4. Conceptual level: This is the highest level of abstraction in a DBMS and it deals with the overall structure and organization of the data in the database. The conceptual level defines the data entities, attributes, and relationships between them and it provides a high level overview of the entire database.

By using these different levels of abstraction, a DBMS can provide a flexible and efficient way to represent and manage data while hiding the complexity of the underlying physical storage and organization of the data.

Conclusion

In conclusion, a database management system (DBMS) is a software application that is used to create, maintain and manage databases. It provides a way to create, modify and access the data in a database as well as to control access to the data in a database as well as to control access to the data and ensure its integrity and security. DBMS has mainly four levels of abstraction, which are Physical level, logical level, view level, and Conceptual level. Each level has its own specification and functionality to manage data.


Related Topics

Difference between Dropbox and Amazon Drive

What is Dropbox? It is a file organising company that is owned by the American Company Dropbox Inc. Itsheadquarters is situated in San Francisco, California, U.S. Dropbox offers personal cloud, client...

3 minutes read.

Structure of DBMS

DBMS means Database Management System, which is a tool or software used to create the database or delete, or manipulate the database. Query Processor, Storage Manager, and Disk Storage are the...

3 minutes read.

Specialization in DBMS

Specialization in DBMS In the database management system, specialization breaks the higher-level entity into two or more than two lower entities. The main motive of this concept is to share the...

2 minutes read.

Foreign key in DBMS

Foreign key in DBMS: The Foreign key is a field or the set of fields in the relational database table, which points to the existing field in another table. It...

2 minutes read.

Hashing in DBMS: Static and Dynamic

Hashing in DBMS: Hashing is the technique of the database management system, which directly finds the specific data location on the disk without using the concept of index structure. In the...

4 minutes read.

Domain Constraints in DBMS

Introduction about DBMS:- DBMS stands for DataBase Management System. DBMS(DataBase Management System) is a type of software by which we can save and retrieve the user's data with the security process....

3 minutes read.

Constraints in Database Management System

In a database management system, certain constraints are applied while performing any operation on the database to ensure that the integrity and quality of the data are maintained throughout the...

4 minutes read.

Primary Key in DBMS

Primary Key in DBMS: A primary key is the minimal set of columns in the database table, which uniquely identifies each row or tuple in that table. Any table in...

2 minutes read.

What is Non-Relational Database

Databases can be sorted as either relational or non-relational. Non-relational data sets are now and again alluded to as "NoSQL," which represents Not Only SQL. The principal difference between these...

4 minutes read.

Candidate Key in DBMS

Candidate key in DBMS: The candidate key is a single column or the set of columns that uniquely identifies the rows of data in the database table. It is a...

2 minutes read.

How to draw ER-Diagram in DBMS?

Entity Relationship Diagrams, or ERDs, are diagrams that assist you in visualizing your database design. An ERD, also called anER diagram or ER model,describes data and how parts of the data interact. ERDs are crucial in database architecture and projects that call for...

9 minutes read.

DBMS Data Independence: Logical and Physical

Data Independence in DBMS: Data independence is a concept of DBMS which alters the schema of the database at one level of the database system without altering the schema definition...

2 minutes read.

Multivalued Dependency

Multivalued Dependency exists in a relation when two attributes depend on the third attribute but independent to each other. It is a full constraint between two sets of attributes in a relation. It...

2 minutes read.

ER Diagram for University Database in DBMS

What is an ER diagram? ER diagram, short for Entity Relationship Diagram, also known as ERD, is a diagram that shows the relationships of a set of entities stored in a...

9 minutes read.

Relational algebra in DBMS

Relational algebra in DBMS Relational algebra is a procedural query language used to retrieve the data from a database in a different way. It works on the relational model. It performs...

3 minutes read.

Levels of Abstraction in DBMS

Data abstraction is a way to hide unwanted or irrelevant information from the end user in DBMS. It helps in enhancing the security of data, and simplifies database design using...

4 minutes read.

DBMS Joins: Inner, Outer, Natural and Self Join

Joins are the combination of related tuples from the two different relations or tables into a single type. It is similar to the Cartesian product except the fact that in Cartesian product operation,...

4 minutes read.

File Organization in DBMS

File Organization in DBMS: A database contains a huge amount of data, which is stored is in the physical memory in the form of files. A file is a set...

9 minutes read.

Disadvantages of DBMS

Disadvantages of DBMS With the vast list of advantages, there are some following disadvantages or limitations of the database management system. 1. High Cost The high cost of software and hardware is the...

2 minutes read.

Founder of DBMS

The first database management system was built to automate the business of the General Electric Company. It was built by a small group of programmers. The Integrated Data Store IDS...

4 minutes read.