Dbms_unit 1_lecture Notes (1)
Dbms_unit 1_lecture Notes (1)
1. Database
⮚ A database is a collection of interrelated data that helps in the efficient retrieval,
insertion & deletion of data from the database & organized the data in form of tables,
reports, schemas, etc.
2. DBMS
⮚ Database Management System
⮚ It is a software system that is designed to manage & organize data in a structured
manner.
⮚ Allows to create, modify, update, store & retrieval of data.
3. Applications of DBMS
⮚ Railway Reservation System
o 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.
⮚ Library Management System
o There are many books in the library so; it is difficult to store the record of the
relative multitude of books in a register or duplicate. Along these lines, the
data set administration framework (DBMS) is utilized to keep up all the data
identified with the name of the book, issue date, accessibility of the book,
and its writer.
⮚ Banking
o Database the executive’s framework is utilized to store the exchange data of
the client in the information base.
⮚ Education Sector
o 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.
⮚ Credit card exchanges
o The database Management framework is utilized for buying on charge cards
and age of month to month proclamations.
⮚ Social Media Sites
o We all utilization of online media sites to associate with companions and to
impart our perspectives to the world. Every day, many people group pursue
4. Advantages of DBMS
⮚ Data Security
o 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.
⮚ Data integration
o 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.
⮚ Data abstraction
o 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.
⮚ Reduction in data Redundancy
o 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.
⮚ Data sharing
o A DBMS provides a platform for sharing data across multiple applications
and users, which can increase productivity and collaboration.
⮚ Data consistency and accuracy
o 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.
⮚ Data organization
o A DBMS provides a systematic approach to organizing data in a structured
way, which makes it easier to retrieve and manage data efficiently.
⮚ Efficient data access and retrieval
o DBMS allows for efficient data access and retrieval by providing indexing
and query optimization techniques that speed up data retrieval. This reduces
5. Disadvantages of DBMS
⮚ Increased cost
o There are various types of costs. These are explained below.
o Cost of hardware and software
▪ To run the DBMS, there is must need for high-speed processors and
large memory size. The cost of a high-speed processor and large
memory storage is very expensive in hardware and software.
▪ So we need to upgrade our hardware and software for the smooth
running of DBMS, which will be very expensive. Also, the
maintenance cost for both hardware and software is very expensive.
All the operations, regulatory compliance, and training (like
programming, application development, and database administration)
are very expensive.
o Cost of staff training
▪ There is a need for application programmers, database administrators,
and data entry operators in the large amount. We also need the
database system designer and the application programmer. So there is
a need for huge money to establish a software house to develop
software.
o Cost of data conversion
▪ We need to change our Database to DBMS. There is also a need for a
lot of money to shift the Database to the DBMS. This is because we
need the database designer to shift the Database to DBMS. We have
to pay lots of money for the software houses. Also, we have a high
investment in the software, hardware, and staff training for the DBMS.
⮚ Complexity
o In today's world, all companies have a DBMS to store their important data
securely. For this, the company has to fulfill all the requirements and the
6. Architecture of DBMS
⮚ There are several types of DBMS Architecture, as below:
o 1-Tier Architecture
o 2-Tier Architecture
o 3-Tier Architecture
⮚ 1-Tier Architecture
o In 1-Tier Architecture the database is directly available to the user, the user
can directly work on the DBMS, the client, server, and Database are all
present on the same machine.
o This architecture is simple and works well for personal, standalone
applications where no external server or network connection is needed.
o Advantages
▪ Easy to Access
● 2-Tier Architecture makes easy access to the database, which
makes fast retrieval.
▪ Scalable
● We can scale the database easily, by adding clients or upgrading
hardware.
▪ Low Cost
o Advantages
▪ Enhanced scalability
● Scalability is enhanced due to the distributed deployment of
application servers. Now, individual connections need not be
made between the client and server.
▪ Data Integrity
● 3-Tier Architecture maintains Data Integrity. Since there is a
middle layer between the client and the server, data corruption
can be avoided/removed.
▪ Security
● 3-Tier Architecture Improves Security. This type of model
prevents direct interaction of the client with the server thereby
reducing access to unauthorized data.
o Disadvantages
▪ More Complex
● 3-Tier Architecture is more complex in comparison to 2-Tier
Architecture. Communication Points are also doubled in 3-Tier
Architecture.
▪ Difficult to Interact
● It becomes difficult for this sort of interaction to take place due
to the presence of middle layers.
8. Users of database
⮚ Database users are categorized based on their interaction with the database. There
are seven types of database users in DBMS.
⮚ Types:
o Database Administrator (DBA)
o Naive / Parametric End Users
o A System Analyst
o Sophisticated Users
o Database Designers
o Application Programmers
o Casual Users / Temporary Users
o Specialized users
⮚ Database Administrator (DBA)
o A Database Administrator (DBA) is a person/team who defines the schema
and also controls the 3 levels of the database. The DBA will then create a new
account ID and password for the user if he/she needs to access the database.
o DBA is also responsible for providing security to the database and he allows
only authorized users to access/modify the database. DBA is responsible for
problems such as security breaches and poor system response time.
⮚ Naive / Parametric End Users
o Parametric End Users are the unsophisticated who don’t have any DBMS
knowledge but they frequently use the database applications in their daily life
to get the desired results.
o For example, Railway’s ticket booking users are naive users. Clerks in any
bank is a naive user because they don’t have any DBMS knowledge but they
still use the database and perform their given task.
⮚ A System Analyst
9. Data models
⮚ Data Model is the modeling of the data description, data semantics, and consistency
constraints of the data. It provides the conceptual tools for describing the design of
a database at each level of data abstraction.
⮚ There are 4 data models, as below
o Relational data model
o Semi-structured data model
⮚ Features
o Parent-Child Relationship
▪ A parent node exists for each child node. However, a parent node
might have several child nodes. It is not permitted to have more than
one parent.
o One-to-many Relationship
▪ The data is organised in a tree-like form, with the datatypes having a
one-to-many relationship. There can only be one path from any node
to its parent.
▪ For example, in the preceding example, there is only one way to get
to the node ‘sneakers’, which is through the ‘men’s shoes’ node.
o Deletion Problem
▪ When a parent node is removed, the child node is removed as well.
o Pointers
▪ Pointers are used to connect the parent and child nodes and to traverse
and navigate between the stored data. The ‘shoes’ node in the above
example points to the two additional nodes, ‘women’s shoes’ and
‘men’s shoes.’
⮚ Advantages
o A tree-like structure is incredibly straightforward and quick to navigate.
o Any modification to the parent node is reflected automatically in the child
node, ensuring data integrity.
⮚ Disadvantages
o Relationships that are complex are not supported.
o Because it only supports one parent per child node, if we have a complex
relationship in which a child node needs to have two parents, we won’t be
able to describe it using this model.
o When a parent node is removed, the child node is removed as well.
⮚ Features
o Multiple Paths
▪ There may be several paths to the same record due to the increased
number of relationships. It allows for quick and easy data access.
o The Ability to Merge More Relationships
▪ Data is more connected in this model since there are more
relationships. This paradigm can handle many-to-many as well as one-
to-one relationships.
o Circular Linked List
▪ The circular linked list is used to perform operations on the network
model. The present position is kept up to date with the help of a
software, and it navigates through the records based on the
relationship.
⮚ Advantages
o In comparison to the hierarchical model, data can be retrieved faster. This is
because the data in the network model is more related, and there may be more
than one path to a given node. As a result, the data can be accessed in a variety
of ways.
o Data integrity is present since there is a parent-child relationship. Any
changes to the parent record are mirrored in the child record.
⮚ Disadvantages
o As the number of relationships to be managed grows, the system may get
increasingly complicated. To operate with the model, a user must have a
thorough understanding of it.
o Any alteration, such as an update, deletion, or insertion, is extremely difficult.
o Entity set
▪ It is a collection of entities of the same type which share similar
properties.
▪ For example, a group of students in a college and students are an entity
set.
o Entity is characterized into two types:
▪ Strong entity set
● The entity types which consist of key attributes or if there are
enough attributes for forming a primary key attribute are called
a strong entity set. It is represented by a single rectangle.
⮚ Attributes
o Attributes are the data characteristics of entities or data elements and data
fields
o Types of attributes
▪ Single value attribute
● These attributes contain a single value. For example, age,
salary etc.
▪ Key Attributes
● The key attribute is used to represent the main characteristics
of an entity. It represents a primary key. The key attribute is
represented by an ellipse with the text underlined.
▪ Multivalued attribute
15. References
⮚ https://www.geeksforgeeks.org/
⮚ https://www.javatpoint.com/
⮚ https://byjus.com/
⮚ https://www.btechvibes.com/