Notes of DBMS
Notes of DBMS
Overview of DBMS
o Data Definition: It is used for creation, modification, and removal of definition that
defines the organization of data in the database.
o Data Updation: It is used for the insertion, modification, and deletion of the actual
data in the database.
o Data Retrieval: It is used to retrieve the data from the database which can be used by
applications for various purposes.
o User Administration: It is used for registering and monitoring users, maintain data
integrity, enforcing data security, dealing with concurrency control, monitoring
performance and recovering information corrupted by unexpected failure.
Characteristics of DBMS
Advantages of DBMS
o Controls database redundancy: It can control data redundancy because it stores all
the data in one single database file and that recorded data is placed in the database.
o Data sharing: In DBMS, the authorized users of an organization can share the data
among multiple users.
o Easily Maintenance: It can be easily maintainable due to the centralized nature of the
database system.
o Reduce time: It reduces development time and maintenance need.
o Backup: It provides backup and recovery subsystems which create automatic backup
of data from hardware and software failures and restores the data if required.
o multiple user interface: It provides different types of user interfaces like graphical
user interfaces, application program interfaces
Disadvantages of DBMS
o Cost of Hardware and Software: It requires a high speed of data processor and large
memory size to run DBMS software.
o Size: It occupies a large space of disks and large memory to run them efficiently.
o Complexity: Database system creates additional complexity and requirements.
o Higher impact of failure: Failure is highly impacted the database because in most of
the organization, all the data stored in a single database and if the database is damaged
due to electric failure or database corruption then the data may be lost forever.
o
The concept of levels of abstraction in DBMS is important because it allows users to work
with databases without worrying about the underlying implementation details. In this article,
we will discuss the different levels of abstraction in DBMS.
The below image provides a clear view of the different levels of abstraction in DBMS.
Each level has its own purpose and functions, and they are connected to each other through
mappings. Let us learn about each levels of abstraction in DBMS in detail.
The external level, also known as the View level, is the level of abstraction that is closest to
the end users. It defines how the data is viewed by the users or applications that access the
database. It provides a high-level view of the database that is tailored to the specific needs of
each user or application.
The external level includes the schema, which is a description of the data that is relevant to a
specific user or application. The schema defines the tables, attributes, and relationships that
are relevant to the user or application. Users or applications interact with the database
through the schema, which provides a simplified view of the database that is easy to
understand and use.
The external level is designed to provide a level of abstraction that shields the users or
applications from the complexities of the underlying database. It allows users to work with
the data in a way that is meaningful to them without worrying about the details of how the
data is stored or organized.
Conceptual Level (Logical Level)
The conceptual level, also known as the logical level, is the level of abstraction that defines
the overall structure of the database. It defines the relationships between the data elements,
the constraints on the data, and the operations that can be performed on the data.
The conceptual level includes the data model, which is a representation of the data that is
independent of any specific database management system. The data model defines the tables,
attributes, and relationships that make up the database and the constraints that govern them.
The conceptual level is designed to provide a high-level view of the database that is
independent of any specific implementation. It allows users to define the structure of the
database in a way that is meaningful to them without worrying about the details of how the
data is stored or accessed.
The internal level, also known as the physical level, is the level of abstraction that defines
how the data is physically stored and organized in the database. It includes the details of how
the data is stored on disk, the access methods used to retrieve the data, and the algorithms
used to perform operations on the data.
The internal level includes the physical schema, which is a description of how the data is
physically stored in the database. The physical schema defines the data structures used to
store the data, the access methods used to retrieve the data, and the algorithms used to
perform operations on the data.
The internal level is designed to provide a low-level view of the database that is optimized for
performance and efficiency. It allows database management systems to store and access data
in the most efficient way possible, without worrying about the needs of the users or
applications.
The levels of abstraction in DBMS provide several benefits to users and applications,
including:
The levels of abstraction in DBMS provide a separation between the way data is
viewed by users or applications and how it is stored and accessed by the database
management system. This allows changes to be made to the physical storage and
access methods without affecting the external or conceptual levels.
Conclusion
The levels of abstraction in DBMS provide a powerful tool for managing data in complex
systems. They allow users and applications to work with the database in a way that is
meaningful to them without worrying about the underlying implementation details. The levels
of abstraction in DBMS provide data independence, simplified database management,
improved performance, and flexibility. By understanding the different levels of abstraction
and how they are connected through mappings, users, and applications can interact with the
database in a way that is efficient, effective, and meaningful.
Data independence
It is difficult to achieve
It is easier to achieve than
compared to physical
logical independence.
independence.