Unit 1
Unit 1
What is DBMS?
• Data is defined as facts or figures, or information that's stored in or
used by a computer. An example of data is information collected for
Introduction to DBMS •
a research paper.
Database Management System (DBMS) is software for storing and
Unit- 1 retrieving users’ data while considering appropriate security measures. It
consists of a group of programs that manipulate the database.
• The DBMS accepts the request for data from an application and instructs
Dr. P. Venu Madhav the operating system to provide the specific data. In large systems, a
DBMS helps users and other third-party software store and retrieve data.
Asst. Professor • DBMS allows users to create their own databases as per their
requirements. The term “DBMS” includes the user of the database and
Dept. of ECE other application programs. It provides an interface between the data and
the software application.
1 2
3 4
1
09-08-2023
Slide 1-5
5 6
7 8
2
09-08-2023
Slide 1- 9
9 10
11 12
3
09-08-2023
13 14
Types of DBMS
Database Languages in DBMS
Hierarchical DBMS • A DBMS has appropriate languages and interfaces to express
In a Hierarchical database, model data is organized in a tree-like structure. Data is
Stored Hierarchically (top-down or bottom-up) format. Data is represented using a
database queries and updates.
parent-child relationship. In Hierarchical DBMS, parents may have many children, but • Database languages can be used to read, store and update the data
children have only one parent. in the database
Network Model
The network database model allows each child to have multiple parents. It helps you to
address the need to model more complex relationships like the orders/parts many-to-
many relationship. In this model, entities are organized in a graph which can be • Data Definition Language (DDL)
accessed through several paths. • Data Manipulation Language (DML)
Relational Model • Data Control Language (DCL)
Relational DBMS is the most widely used DBMS model because it is one of the easiest. • Transaction Control Language (TCL)
This model is based on normalizing data in the rows and columns of the tables.
Relational model stored in fixed structures and manipulated using SQL.
Object-Oriented Model
In the Object-oriented Model data is stored in the form of objects. The structure is
called classes which display data within it. It is one of the components of DBMS that
defines a database as a collection of objects that stores both data members’ values and
operations.
15 16
4
09-08-2023
Tasks that come under DDL Tasks that come under DML: Tasks that come under DCL Tasks that come under TCL
• Create: It is used to create • Select: It is used to retrieve data • Grant: It is used to give user • Commit: It is used to save the
objects in the database. from a database.
access privileges to a transaction on the database.
• Alter: It is used to alter the • Insert: It is used to insert data into database.
structure of the database. • Rollback: It is used to restore
a table.
• Drop: It is used to delete • Revoke: It is used to take back the database to original since
• Update: It is used to update existing
objects from the database. permissions from the user. the last Commit.
data within a table.
• Truncate: It is used to remove
all records from a table. • Delete: It is used to delete all
records from a table.
• Rename: It is used to rename
an object. • Merge: It performs UPSERT
• Comment: It is used to operation, i.e., insert or update
comment on the data operations.
dictionary. • Call: It is used to call a structured
query language or a Java
subprogram.
• Explain Plan: It has the parameter
of explaining data.
• Lock Table: It controls concurrency.
17 18
19 20
5
09-08-2023
21 22
23 24
6
09-08-2023
25 26
Application of DBMS
Popular DBMS Software Sector Use of DBMS
For customer information, account activities,
Banking
Here is the list of some popular DBMS systems: payments, deposits, loans, etc.
• MySQL Airlines For reservations and schedule information.
• Microsoft Access
For student information, course registrations, colleges,
• Oracle Universities
and grades.
• PostgreSQL
It helps to keep call records, monthly bills, maintain
• dBASE Telecommunication
balances, etc.
• FoxPro
For storing information about stock, sales, and
• SQLite Finance purchases of financial instruments like stocks and
• IBM DB2 bonds.
• LibreOffice Base
Sales Use for storing customer, product & sales information.
• MariaDB
• Microsoft SQL Server It is used to manage the supply chain and track the
Manufacturing
production of items. Inventories status in warehouses.
For information about employees, salaries, payroll,
HR Management
deduction, generation of paychecks, etc.
27 28
7
09-08-2023
Advantages of DBMS
Centralized Architecture
Disadvantage of DBMS
• DBMS offers a variety of techniques to • DBMS may offer plenty of advantages, but
store & retrieve data it has certain flaws-
• DBMS serves as an efficient handler to • The cost of Hardware and Software of a • In Centralized Architecture, the
balance the needs of multiple DBMS is quite high, which increases the mainframe computers are used for
applications using the same data budget of your organization. processing all system functions
• Uniform administration procedures for • Most database management systems are including User application Programs
data often complex, so training users to use the and User Interface Programs as well as
• Application programmers are never DBMS is required. DBMS functionalities.
exposed to details of data • In some organizations, all data is integrated • This is because in earlier days, most
representation and storage. into a single database that can be damaged users accessed such systems via
• A DBMS uses various powerful because of electric failure or corruption in Computer Terminals, which can’t
functions to store and retrieve data the storage media. Process and they have only display
efficiently. • Using the same program at a time by capability.
• Offers Data Integrity and Security multiple users sometimes leads to data • The Processing used to take place in
• The DBMS implies integrity constraints loss. these Computer Systems and the
to get a high level of protection against • DBMS can’t perform sophisticated display information is sent to display
prohibited access to data. calculations terminals and these terminals are
• A DBMS schedules concurrent access to connected to mainframe computers
the data in such a manner that only one via various kinds of Networks.
user can access the same data at a time
• Reduced Application Development
Time
29 30
31 32