Dbms Notes 1
Dbms Notes 1
A Database Management System (DBMS) is a software system that is designed to manage and
organize data in a structured manner. It allows users to create, modify, and query a database, as well
as manage the security and access controls for that database.
1. Data Security: The more accessible and usable the database, the more it is prone to security
issues. As the number of users increases, the data transferring or data sharing rate also increases
thus increasing the risk of data security. It is widely used in the corporate world where
companies invest large amounts of money, time, and effort to ensure data is secure and used
properly. A Database Management System (DBMS) provides a better platform for data privacy
and security policies thus, helping companies to improve Data Security.
2. Data integration: Due to the Database Management System we have access to well-managed
and synchronized forms of data thus it makes data handling very easy and gives an integrated
view of how a particular organization is working and also helps to keep track of how one
segment of the company affects another segment.
3. Data abstraction: The major purpose of a database system is to provide users with an abstract
view of the data. Since many complex algorithms are used by the developers to increase the
efficiency of databases that are being hidden by the users through various data abstraction
levels to allow users to easily interact with the system.
4. Reduction in data Redundancy: When working with a structured database, DBMS provides
the feature to prevent the input of duplicate items in the database. for e.g. – If there are two
same students in different rows, then one of the duplicate data will be deleted.
5. Data sharing: A DBMS provides a platform for sharing data across multiple applications and
users, which can increase productivity and collaboration.
6. Data consistency and accuracy: DBMS ensures that data is consistent and accurate by
enforcing data integrity constraints and preventing data duplication. This helps to eliminate data
discrepancies and errors that can occur when data is stored and managed manually.
8. Efficient data access and retrieval: DBMS allows for efficient data access and retrieval by
providing indexing and query optimization techniques that speed up data retrieval. This reduces
the time required to process large volumes of data and increases the overall performance of the
system.
Application of DBMS:
There are different fields where a database management system is utilized. Following are a few
applications that utilize the information base administration framework.
1. Railway Reservation System:
In the rail route reservation framework, the information base is needed to store the record or
information of ticket appointments, status of train’s appearance, and flight. Additionally, if trains get
late, individuals become acquainted with it through the information base update.
3. Banking
Database the executive’s framework is utilized to store the exchange data of the client in the
information base.
4. Education Sector
Presently, assessments are led online by numerous schools and colleges. They deal with all
assessment information through the data set administration framework (DBMS). In spite of that
understudy’s enlistments subtleties, grades, courses, expense, participation, results, and so forth all
the data is put away in the information base.
o Logical data independence refers characteristic of being able to change the conceptual schema
without having to change the external schema.
o Logical data independence is used to separate the external level from the conceptual view.
o If we do any changes in the conceptual view of the data, then the user view of the data would
not be affected.
o Logical data independence occurs at the user interface level.
o Physical data independence can be defined as the capacity to change the internal schema
without having to change the conceptual schema.
o If we do any changes in the storage size of the database system server, then the Conceptual
structure of the database will not be affected.
o Physical data independence is used to separate conceptual levels from the internal levels.
o Physical data independence occurs at the logical interface level.
“Schema” and “Instance” are key ideas in a database management system (DBMS) that help
organize and manage data. Let’s begin by examining their distinctions from one another.
Instances:
An Instance is the state of an operational database with data at any given time. It contains a
snapshot of the database. The instances can be changed by certain CRUD operations, such as like
addition, and deletion of data. It may be noted that any search query will not make any kind of
changes in the instances.
Example:
Let’s say a table teacher in our database whose name is School, suppose the table has 50 records so
the instance of the database has 50 records for now and tomorrow we are going to add another fifty
records so tomorrow the instance has a total of 100 records. This is called an instance.
Schema:
Schema is the overall description of the database. The basic structure of how the data will be stored
in the database is called schema.
Schema is of three types: Logical Schema, Physical Schema and view Schema.
Logical Schema – It describes the database designed at a logical level.
Physical Schema – It describes the database designed at the physical level.
View Schema – It defines the design of the database at the view level.
Schema
Schema Instance
Defines the basic structure of the database i.e. It is the set of Information stored at a
how the data will be stored in the database. particular time.
Data Dictionary:
A Data Dictionary can be defined as a collection of information on all data elements or contents of
databases such as data types, and text descriptions of the system.
Types of Data Dictionary
Data Dictionary is basically of two types. We will discuss each of them.
Integrated Data Dictionary
Stand Alone Data Dictionary
1. Internal Level: The internal level, or physical schema, describes the physical storage structure of
the database. It details how data is stored in blocks, the storage space allocations, access paths, and
the optimization of internal structures. This level is concerned with the technical aspects of data
storage, such as data compression, encryption, and the use of data structures like B-Trees and
hashing1.
2. Conceptual Level: Also known as the logical level, the conceptual schema provides a blueprint of
the entire database structure. It outlines what data is stored and the relationships among those data.
This level abstracts the internal details of data storage, focusing instead on the overall design of
the database. Database administrators and developers typically interact with the DBMS at this
level1.
3. External Level: The external level comprises multiple schemas or views, each tailored to different
user groups. These views, also referred to as subschemas, present a portion of the database that is
relevant to a particular group, hiding the rest. For example, a faculty member may have a view that
includes course details of students, while students may have a view that encompasses academic,
account, and hostel information
Data Models
Data Model is the modeling of the data description, data semantics, and consistency constraints of the
data.
There are 4 types of data models: