SlideShare a Scribd company logo
1 of 39
Getting started 
with DBMS 
Prepared By: 
Prerana Bhattarai
ā€¢ Introduction to Database Management System 
ā€¢ DBMS vs File System 
ā€¢ View of data 
ā€¢ Data models 
ā€¢ Database Languages: DML, DDL 
ā€¢ Database users and administrators 
ā€¢ Transaction Management 
ā€¢ Database System Structure 
ā€¢ Application architectures 
The slides include:
ā€¢ A DBMS is a collection of software programs that allows 
a user to define data types, structures, constraints, store 
data permanently, modify and delete the operations. 
ā€¢ DBMS is basically a software used to add, modify, delete, 
select data from the database. 
ā€¢ In simpler words, DBMS is a collection of interrelated 
data and software programs to access those data. 
Introduction to Database 
Management System
Bases DBMS Flat file system 
Definition 
Data 
redundancy 
Cost 
Use 
Views 
DBMS is a collection of interrelated data 
and software programs to access those 
data. 
There is no problem of data redundancy. 
DBMS software are very costly and also 
regular update makes it costly. 
Mostly, large organizations use DBMS 
who can afford it and have a large 
number of client and employees to be 
managed. 
Views are created and an employees 
canā€™t see all information available, hence 
there is security. 
Flat file system stores data in a plain 
text file. Here, the records are specified 
in a single line. 
There is main problem of data 
redundancy. 
Flat file are cost effective. 
Small organizations use it as it is cost 
effective and who have to deal with 
small number of clients and 
employees. 
Any information can be seen by 
anyone, hence there is no security. 
DBMS VS Flat file system
View 1 View 2 View N 
Logical level 
Physical level 
Views of data 
View level 
Conceptual 
level 
Internal 
level 
Stored 
database
ā€¢ It is a process of easy user interface to users by hiding 
underlying complexities of data management from users. 
ā€¢ It defines views; which user can view which part. 
ā€¢ Database system provides users with abstract view of the 
data. 
ā€¢ It only shows a part of database that a user needs. 
Data abstraction
ā€¢ It is the lowest level of abstractions and describes how 
the data are stored on the storage disk and access 
mechanisms to retrieve the data. 
ā€¢ DBMS developer is concerned with this level. 
ā€¢ This level emphasis on minimizing the number of disks 
access so that data can be retrieved very fast. 
ā€¢ It describes complex low-level data structures in detail. 
Physical Level
ā€¢ This level describes what data are stored in the database 
and the relationships between the data. 
ā€¢ It describes stored data in terms of the data model. 
ā€¢ It describes the database in terms of small number of 
relatively simple structures. 
Logical Level
ā€¢ Every user donā€™t need to access all information stored in 
the database. 
ā€¢ This level is basically concerned with dividing the 
database according to the need of the database users. 
ā€¢ It simplifies the interaction of the users with the system. 
View Level
ā€¢ The basic design or the structure of the database is the 
data model. 
ā€¢ It is a collection of conceptual tools for describing data, 
data relationships, data semantics, and consistency 
constraints. 
ā€¢ The basic structure of the database that organizes data, 
defines how the data are stored and accessed, and the 
relationships between the data, is the data model. 
Data Model
ā€¢ Hierarchical Model 
ā€¢ Network Model 
ā€¢ Entity-Relationship(E-R) Model 
ā€¢ Relational Model 
ā€¢ Object-Oriented Model 
ā€¢ Object-Relational Model 
Types of database 
models
ā€¢ Data is represented as a tree. 
ā€¢ A record type can belong to only one owner type but a 
owner type can belong to many record type. 
Hierarchical Data Model
ā€¢ It is modified version of Hierarchical Data Model where 
it allows more general connections among the nodes as 
well. 
ā€¢ They are difficult to use but are more flexible than 
hierarchical databases. 
Network Data Model
ā€¢ It is a lower level model that uses a collection of tables to 
represent both data and relationships among those data. 
ā€¢ Each table has multiple columns, depending on the 
number of attributes, and each column has a unique 
name. 
Student 
sid sname Standard 
A-101 Ramesh 11 
A-102 Kriti 10 
A-103 Laxmi 12 
Relational Model
ā€¢ It is a high level model based on the need of the 
organization. 
ā€¢ Its entities are distinguishable from other objects and 
relationship is an association among several entities. 
Student Borrows Books 
sid sname standard bid author 
E-R Model
ā€¢ It represents entity sets as class and a class represents both 
attributes and the behavior of the entity. 
ā€¢ Instance of a class is an object. 
ā€¢ The internal part of the object is not externally visible. 
ā€¢ One object communicates with the other by sending messages. 
Object-Oriented Model
ā€¢ It combines the feature of relational data model and 
object-oriented data model. 
Object-Relational Model
ā€¢ Data Definition Language(DDL): 
ā€¢ Database language that is used to create, delete or modify 
database schema is called DDL. 
ā€¢ It is used by Database Administrators(DBA) to specify the 
conceptual schema. 
ā€¢ DDL interpreter converts DDL statements into equivalent 
low level statements understood by the DBMS. 
ā€¢ Normally, create, alter, and drop statements are DDL 
statements. 
ā€¢ DDL statements make changes in the schema 
Database Languages 
(DDL, DML)
Example: For create command 
create table Student 
( 
sid char(4), 
sname varchar(50), 
standard integer 
); 
DDL contā€™d 
Example: For drop command 
drop Student; 
Example: For alter command 
alter table Student 
ADD COLUMN address varchar(20) 
;
ā€¢ Database language that enables insert, update, delete, and 
retrieval of data from the database is called Data 
Manipulation Language. 
ā€¢ DML complier converts DML statements into equivalent 
low level statements that the database understands. 
ā€¢ Normally, insert, update, delete, select are DML 
commands. 
ā€¢ DML reflects change in the instance, not the schema 
DML
Example: For insert 
Insert into Student 
values(ā€œA-101ā€, 
ā€œRameshā€, 12); 
Example: for update 
Update Student 
Set class = 11 
Where sid = ā€œA-101ā€ 
; Example: For delete 
DML contā€™d 
Example: for select 
Select * 
From Student 
Delete from standard 
Where sname = ā€œKritiā€ 
Note: In SQL, cases are insensitive. So, instead of Student one can write StUdEnT as 
well. 
Also, for integer values ā€œ12ā€ is incorrect but 12 is correct. 
And, for char and varchar ā€œKritiā€ is correct and Kriti is incorrect.
ā€¢ Users are distinguished by the way they interact with the 
database system. 
1. NaĆÆve users: 
ā€¢ They interact with the system by invoking one of the 
application programs written previously. Naive users are 
bank teller, receptionist, etc. 
ā€¢ For e.g., bank teller needs to add Rs.90 to account Ram, 
and deduct the same amount from account Sita. Then the 
application program the bank teller uses is transfer. 
Database users and 
administrators
2. Application programmers: 
They are specializes computer professionals who write the 
application programs for naĆÆve users and for easy user interface 
can use an tools. 
3. Sophisticated users: 
They make request to the database with writing application 
programs. 
4. Specialized users: 
They are experts who write database application like system 
storing complex data types, CAD systems that do not fit to the 
traditional data-processing framework. 
Database users and 
administrators contā€™d
Database administrators: 
DBA is a person who has control over data and the associated 
application programs. He is the one who can define schema, 
install new software, enforcing security to the system, etc. 
Major responsibilities of DBA are: 
1. Define schema and modify as per needed 
2. Install new software for efficient operations 
3. Enforcing and monitoring security 
4. Analyzing the data stored in the DBMS 
5. Keeping the backup of the DBMS periodically 
6. Ensuring the state of the hardware and software 
Database users and 
administrators contā€™d
ā€¢ Collection of operations that form a single logical unit of 
work are called transaction. 
ā€¢ Transaction management ensures that the database system 
have ACID properties. 
A = atomicity 
C = consistency 
I = isolation 
D = durability 
Transaction Management
1. Atomicity: 
Atomic means whole. This property ensures that the 
changes made to the database are wholly reflected or no 
change is made. But partial changes or execution are not 
made. 
2. Consistency: 
The database must move from one consistent state to 
another after the execution of the transaction. 
Properties of Transaction 
Management (ACID property)
3. Isolation: 
Even if many transaction may be done at the same time but 
isolation ensures that if transaction A and B are executing 
concurrently, then either A must execute first then B is 
executed or, B must execute first then A is executed. 
4. Durability: 
Changes made to the database are permanent and even if the 
system failure occurs, that donā€™t lead to the erase of the 
transaction executed previously. 
Properties of Transaction 
Management (ACID property) contā€™d
Database system structure
1. Storage Manager 
2. Disk Storage 
3. Query Processor 
Its components are:
ā€¢ Storage manager stores, retrieves, and updates data in the 
database. It translates DML statements into low level 
statements that the database understands 
ā€¢ Its components are: 
ā€¢ Authorization and integrity manager: It checks for the 
correctness of the constraints specified and also checks the 
authenticity of the users while entering the database. 
ā€¢ Transaction manager: It ensures that the database follows the 
ACID property. 
ā€¢ File manager: It is responsible to manage allocation of space on 
the disk storage. 
ā€¢ Buffer manager: It is responsible for fetching data from the disk 
storage and to decide what data to cache in the main memory. It 
enables to handle data sizes which are larger than the size of the 
disk. 
1. Storage Manager
ā€¢ It is responsible for allocating the disk space and also for 
maintaining the data in the database. 
ā€¢ Its components are: 
ā€¢ Data files: It is the place where database is stored, 
ā€¢ Data dictionary: It stores metadata about the schema of the 
database. 
ā€¢ Indices: It provides quick access to the data items that hold 
particular values. 
2. Disk Storage
ā€¢ It simplifies and facilitates easy access to the data. 
ā€¢ It translates queries written in non-procedural language, 
and operates the statement. 
ā€¢ Its components are: 
ā€¢ DDL interpreter: It interprets DDL statements into low-level 
language understood by the system. 
ā€¢ DML compiler: It translates DML statements into an 
evaluation plan consisting low level instructions that the 
query evaluation engine understands. 
ā€¢ Query evaluation engine: It executes low level statements 
generated by the DML compiler. 
3. Query Processor
ā€¢ In two tier architecture, user interface and application 
programs are on the client side and query and transaction 
facility are on the server side 
ā€¢ When DBMS access is required, the application program 
establishes connection with client and server 
ā€¢ Client queries and server provides response to the 
authenticated client request/queries. 
ā€¢ There is direct interaction of client with the server 
ā€¢ The business logic coupled with either client side or the 
server side. 
Two-tier architecture
Two Tier architecture
ADVANTAGES DISADVANTAGES 
ā€¢ Suitable for 
environments where 
business rules do 
not change 
frequently 
ā€¢ number of users are 
limited 
Advantages 
Disadvantages 
ā€¢ Useless for large 
scale organizations 
ā€¢ Only a limited 
number of clients 
can access
ā€¢ In three tier architecture, user interface and application 
programs are on the client side and query and transaction 
facility are on the server side and in between there is an 
intermediate layer which stores business 
rules(procedures/constraints) used to access data from the 
database. 
ā€¢ When DBMS access is required, the application program 
establishes connection with client and server but before 
forwarding the request of client, application rules check the 
client credentials. 
ā€¢ There is indirect interaction of client with the server but direct 
connection of client and application rules and application rules 
and the server. 
Three Tier Architecture
Three Tier Architecture
ADVANTAGES DISADVANTAGES 
ā€¢ Efficiency 
ā€¢ Security 
ā€¢ Scalability 
ā€¢ Flexible 
Advantages 
Disadvantages 
ā€¢ More complex 
structure 
ā€¢ More difficult to 
setup and maintain 
ā€¢ Expensive
ā€¢ Instance: The collection of information currently stored in 
the database at the particular period. 
ā€¢ Schema: The overall design of the database that is not 
expected to change frequently. 
ā€¢ Mapping: 
ā€¢ Metadata: Data about data. 
ā€¢ Data dictionary: A special file that stores metadata. 
ā€¢ Methods: Values and bodies of codes that the object 
contains. 
Common terms used in 
DBMS

More Related Content

What's hot

Dbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureDbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureAmiya9439793168
Ā 
Database architecture
Database architectureDatabase architecture
Database architectureVENNILAV6
Ā 
Database Management System
Database Management SystemDatabase Management System
Database Management SystemNILESH UCHCHASARE
Ā 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-SystemsVenkata Sreeram
Ā 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraintsmadhav bansal
Ā 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: NormalisationDamian T. Gordon
Ā 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to DatabaseSiti Ismail
Ā 
Er model ppt
Er model pptEr model ppt
Er model pptPihu Goel
Ā 
The database applications
The database applicationsThe database applications
The database applicationsDolat Ram
Ā 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational modelChirag vasava
Ā 
Codd's rules
Codd's rulesCodd's rules
Codd's rulesMohd Arif
Ā 
Database security
Database securityDatabase security
Database securityMaryamAsghar9
Ā 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management SystemAmiya9439793168
Ā 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architecturesPooja Dixit
Ā 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level ArchitectureAdeel Rasheed
Ā 

What's hot (20)

Dbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureDbms 3: 3 Schema Architecture
Dbms 3: 3 Schema Architecture
Ā 
Database architecture
Database architectureDatabase architecture
Database architecture
Ā 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
Ā 
DATA WAREHOUSING AND DATA MINING
DATA WAREHOUSING AND DATA MININGDATA WAREHOUSING AND DATA MINING
DATA WAREHOUSING AND DATA MINING
Ā 
Database Management System
Database Management SystemDatabase Management System
Database Management System
Ā 
Database security
Database securityDatabase security
Database security
Ā 
Database recovery
Database recoveryDatabase recovery
Database recovery
Ā 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-Systems
Ā 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
Ā 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
Ā 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
Ā 
Er model ppt
Er model pptEr model ppt
Er model ppt
Ā 
The database applications
The database applicationsThe database applications
The database applications
Ā 
ER-Model-ER Diagram
ER-Model-ER DiagramER-Model-ER Diagram
ER-Model-ER Diagram
Ā 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
Ā 
Codd's rules
Codd's rulesCodd's rules
Codd's rules
Ā 
Database security
Database securityDatabase security
Database security
Ā 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
Ā 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architectures
Ā 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level Architecture
Ā 

Viewers also liked

Database presentation
Database presentationDatabase presentation
Database presentationwebhostingguy
Ā 
Presentation leadership & engineering mgmt.
Presentation   leadership & engineering mgmt.Presentation   leadership & engineering mgmt.
Presentation leadership & engineering mgmt.David Tennant
Ā 
Functions of database management systems
Functions of database management systemsFunctions of database management systems
Functions of database management systemsUZAIR UDDIN SHAIKH
Ā 
Database management functions
Database management functionsDatabase management functions
Database management functionsyhen06
Ā 
Function
FunctionFunction
Functionrey501
Ā 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentationsameerraaj
Ā 
Data base management system
Data base management systemData base management system
Data base management systemNavneet Jingar
Ā 
Types of databases
Types of databasesTypes of databases
Types of databasesPAQUIAAIZEL
Ā 
Database management system
Database management systemDatabase management system
Database management systemRizwanHafeez
Ā 
Database Management Systems (DBMS)
Database Management Systems (DBMS)Database Management Systems (DBMS)
Database Management Systems (DBMS)Dimara Hakim
Ā 
Microsoft word presentation
Microsoft word presentationMicrosoft word presentation
Microsoft word presentationegirshovich
Ā 

Viewers also liked (14)

Database presentation
Database presentationDatabase presentation
Database presentation
Ā 
Presentation leadership & engineering mgmt.
Presentation   leadership & engineering mgmt.Presentation   leadership & engineering mgmt.
Presentation leadership & engineering mgmt.
Ā 
Functions of database management systems
Functions of database management systemsFunctions of database management systems
Functions of database management systems
Ā 
Database management functions
Database management functionsDatabase management functions
Database management functions
Ā 
Function
FunctionFunction
Function
Ā 
DbMs
DbMsDbMs
DbMs
Ā 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentation
Ā 
Data base management system
Data base management systemData base management system
Data base management system
Ā 
Types of databases
Types of databasesTypes of databases
Types of databases
Ā 
Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
Ā 
Database management system
Database management systemDatabase management system
Database management system
Ā 
Dbms slides
Dbms slidesDbms slides
Dbms slides
Ā 
Database Management Systems (DBMS)
Database Management Systems (DBMS)Database Management Systems (DBMS)
Database Management Systems (DBMS)
Ā 
Microsoft word presentation
Microsoft word presentationMicrosoft word presentation
Microsoft word presentation
Ā 

Similar to Presentation on Database management system

Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxRiannel Tecson
Ā 
CHAPTER 1 Database system architecture.pptx
CHAPTER 1 Database system architecture.pptxCHAPTER 1 Database system architecture.pptx
CHAPTER 1 Database system architecture.pptxkashishy2
Ā 
Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptxchatkall46
Ā 
01-database-management.pptx
01-database-management.pptx01-database-management.pptx
01-database-management.pptxdhanajimirajkar1
Ā 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptxAshmitKashyap1
Ā 
Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)Vijayananda Ratnam Ch
Ā 
Lecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.pptLecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.pptDeeptimaanKrishnaJad
Ā 
Basic Concept of Database
Basic Concept of DatabaseBasic Concept of Database
Basic Concept of DatabaseMarlon Jamera
Ā 
Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Tushar Wagh
Ā 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxuwmctesting
Ā 
Unit 1 dbms
Unit 1 dbmsUnit 1 dbms
Unit 1 dbmsSweta Singh
Ā 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMSMerlin Florrence
Ā 
Utsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra
Ā 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2Mukund Trivedi
Ā 
Database Management System.pptx
Database Management System.pptxDatabase Management System.pptx
Database Management System.pptxAaravSharma743156
Ā 
Beginning Of DBMS (data base)
Beginning Of DBMS (data base)Beginning Of DBMS (data base)
Beginning Of DBMS (data base)Surya Swaroop
Ā 
Cp 121 lecture 01
Cp 121 lecture 01Cp 121 lecture 01
Cp 121 lecture 01ITNet
Ā 

Similar to Presentation on Database management system (20)

Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptx
Ā 
CHAPTER 1 Database system architecture.pptx
CHAPTER 1 Database system architecture.pptxCHAPTER 1 Database system architecture.pptx
CHAPTER 1 Database system architecture.pptx
Ā 
Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptx
Ā 
01-database-management.pptx
01-database-management.pptx01-database-management.pptx
01-database-management.pptx
Ā 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptx
Ā 
Fundamentals of DBMS
Fundamentals of DBMSFundamentals of DBMS
Fundamentals of DBMS
Ā 
Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)
Ā 
Ch1_Intro-95(1).ppt
Ch1_Intro-95(1).pptCh1_Intro-95(1).ppt
Ch1_Intro-95(1).ppt
Ā 
Lecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.pptLecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.ppt
Ā 
Basic Concept of Database
Basic Concept of DatabaseBasic Concept of Database
Basic Concept of Database
Ā 
Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332
Ā 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
Ā 
Unit 1 dbms
Unit 1 dbmsUnit 1 dbms
Unit 1 dbms
Ā 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMS
Ā 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
Ā 
Utsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnet
Ā 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2
Ā 
Database Management System.pptx
Database Management System.pptxDatabase Management System.pptx
Database Management System.pptx
Ā 
Beginning Of DBMS (data base)
Beginning Of DBMS (data base)Beginning Of DBMS (data base)
Beginning Of DBMS (data base)
Ā 
Cp 121 lecture 01
Cp 121 lecture 01Cp 121 lecture 01
Cp 121 lecture 01
Ā 

Recently uploaded

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
Ā 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
Ā 
Visit to a blind student's schoolšŸ§‘ā€šŸ¦ÆšŸ§‘ā€šŸ¦Æ(community medicine)
Visit to a blind student's schoolšŸ§‘ā€šŸ¦ÆšŸ§‘ā€šŸ¦Æ(community medicine)Visit to a blind student's schoolšŸ§‘ā€šŸ¦ÆšŸ§‘ā€šŸ¦Æ(community medicine)
Visit to a blind student's schoolšŸ§‘ā€šŸ¦ÆšŸ§‘ā€šŸ¦Æ(community medicine)lakshayb543
Ā 
Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...
Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...
Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...Nguyen Thanh Tu Collection
Ā 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A BeƱa
Ā 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
Ā 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
Ā 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
Ā 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
Ā 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
Ā 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
Ā 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
Ā 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
Ā 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
Ā 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
Ā 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
Ā 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A BeƱa
Ā 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
Ā 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
Ā 

Recently uploaded (20)

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
Ā 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
Ā 
Visit to a blind student's schoolšŸ§‘ā€šŸ¦ÆšŸ§‘ā€šŸ¦Æ(community medicine)
Visit to a blind student's schoolšŸ§‘ā€šŸ¦ÆšŸ§‘ā€šŸ¦Æ(community medicine)Visit to a blind student's schoolšŸ§‘ā€šŸ¦ÆšŸ§‘ā€šŸ¦Æ(community medicine)
Visit to a blind student's schoolšŸ§‘ā€šŸ¦ÆšŸ§‘ā€šŸ¦Æ(community medicine)
Ā 
Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...
Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...
Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...
Ā 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
Ā 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
Ā 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Ā 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
Ā 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Ā 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
Ā 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Ā 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
Ā 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
Ā 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
Ā 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
Ā 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
Ā 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Ā 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
Ā 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
Ā 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
Ā 

Presentation on Database management system

  • 1. Getting started with DBMS Prepared By: Prerana Bhattarai
  • 2. ā€¢ Introduction to Database Management System ā€¢ DBMS vs File System ā€¢ View of data ā€¢ Data models ā€¢ Database Languages: DML, DDL ā€¢ Database users and administrators ā€¢ Transaction Management ā€¢ Database System Structure ā€¢ Application architectures The slides include:
  • 3. ā€¢ A DBMS is a collection of software programs that allows a user to define data types, structures, constraints, store data permanently, modify and delete the operations. ā€¢ DBMS is basically a software used to add, modify, delete, select data from the database. ā€¢ In simpler words, DBMS is a collection of interrelated data and software programs to access those data. Introduction to Database Management System
  • 4. Bases DBMS Flat file system Definition Data redundancy Cost Use Views DBMS is a collection of interrelated data and software programs to access those data. There is no problem of data redundancy. DBMS software are very costly and also regular update makes it costly. Mostly, large organizations use DBMS who can afford it and have a large number of client and employees to be managed. Views are created and an employees canā€™t see all information available, hence there is security. Flat file system stores data in a plain text file. Here, the records are specified in a single line. There is main problem of data redundancy. Flat file are cost effective. Small organizations use it as it is cost effective and who have to deal with small number of clients and employees. Any information can be seen by anyone, hence there is no security. DBMS VS Flat file system
  • 5. View 1 View 2 View N Logical level Physical level Views of data View level Conceptual level Internal level Stored database
  • 6. ā€¢ It is a process of easy user interface to users by hiding underlying complexities of data management from users. ā€¢ It defines views; which user can view which part. ā€¢ Database system provides users with abstract view of the data. ā€¢ It only shows a part of database that a user needs. Data abstraction
  • 7. ā€¢ It is the lowest level of abstractions and describes how the data are stored on the storage disk and access mechanisms to retrieve the data. ā€¢ DBMS developer is concerned with this level. ā€¢ This level emphasis on minimizing the number of disks access so that data can be retrieved very fast. ā€¢ It describes complex low-level data structures in detail. Physical Level
  • 8. ā€¢ This level describes what data are stored in the database and the relationships between the data. ā€¢ It describes stored data in terms of the data model. ā€¢ It describes the database in terms of small number of relatively simple structures. Logical Level
  • 9. ā€¢ Every user donā€™t need to access all information stored in the database. ā€¢ This level is basically concerned with dividing the database according to the need of the database users. ā€¢ It simplifies the interaction of the users with the system. View Level
  • 10. ā€¢ The basic design or the structure of the database is the data model. ā€¢ It is a collection of conceptual tools for describing data, data relationships, data semantics, and consistency constraints. ā€¢ The basic structure of the database that organizes data, defines how the data are stored and accessed, and the relationships between the data, is the data model. Data Model
  • 11. ā€¢ Hierarchical Model ā€¢ Network Model ā€¢ Entity-Relationship(E-R) Model ā€¢ Relational Model ā€¢ Object-Oriented Model ā€¢ Object-Relational Model Types of database models
  • 12. ā€¢ Data is represented as a tree. ā€¢ A record type can belong to only one owner type but a owner type can belong to many record type. Hierarchical Data Model
  • 13. ā€¢ It is modified version of Hierarchical Data Model where it allows more general connections among the nodes as well. ā€¢ They are difficult to use but are more flexible than hierarchical databases. Network Data Model
  • 14. ā€¢ It is a lower level model that uses a collection of tables to represent both data and relationships among those data. ā€¢ Each table has multiple columns, depending on the number of attributes, and each column has a unique name. Student sid sname Standard A-101 Ramesh 11 A-102 Kriti 10 A-103 Laxmi 12 Relational Model
  • 15. ā€¢ It is a high level model based on the need of the organization. ā€¢ Its entities are distinguishable from other objects and relationship is an association among several entities. Student Borrows Books sid sname standard bid author E-R Model
  • 16. ā€¢ It represents entity sets as class and a class represents both attributes and the behavior of the entity. ā€¢ Instance of a class is an object. ā€¢ The internal part of the object is not externally visible. ā€¢ One object communicates with the other by sending messages. Object-Oriented Model
  • 17. ā€¢ It combines the feature of relational data model and object-oriented data model. Object-Relational Model
  • 18. ā€¢ Data Definition Language(DDL): ā€¢ Database language that is used to create, delete or modify database schema is called DDL. ā€¢ It is used by Database Administrators(DBA) to specify the conceptual schema. ā€¢ DDL interpreter converts DDL statements into equivalent low level statements understood by the DBMS. ā€¢ Normally, create, alter, and drop statements are DDL statements. ā€¢ DDL statements make changes in the schema Database Languages (DDL, DML)
  • 19. Example: For create command create table Student ( sid char(4), sname varchar(50), standard integer ); DDL contā€™d Example: For drop command drop Student; Example: For alter command alter table Student ADD COLUMN address varchar(20) ;
  • 20. ā€¢ Database language that enables insert, update, delete, and retrieval of data from the database is called Data Manipulation Language. ā€¢ DML complier converts DML statements into equivalent low level statements that the database understands. ā€¢ Normally, insert, update, delete, select are DML commands. ā€¢ DML reflects change in the instance, not the schema DML
  • 21. Example: For insert Insert into Student values(ā€œA-101ā€, ā€œRameshā€, 12); Example: for update Update Student Set class = 11 Where sid = ā€œA-101ā€ ; Example: For delete DML contā€™d Example: for select Select * From Student Delete from standard Where sname = ā€œKritiā€ Note: In SQL, cases are insensitive. So, instead of Student one can write StUdEnT as well. Also, for integer values ā€œ12ā€ is incorrect but 12 is correct. And, for char and varchar ā€œKritiā€ is correct and Kriti is incorrect.
  • 22. ā€¢ Users are distinguished by the way they interact with the database system. 1. NaĆÆve users: ā€¢ They interact with the system by invoking one of the application programs written previously. Naive users are bank teller, receptionist, etc. ā€¢ For e.g., bank teller needs to add Rs.90 to account Ram, and deduct the same amount from account Sita. Then the application program the bank teller uses is transfer. Database users and administrators
  • 23. 2. Application programmers: They are specializes computer professionals who write the application programs for naĆÆve users and for easy user interface can use an tools. 3. Sophisticated users: They make request to the database with writing application programs. 4. Specialized users: They are experts who write database application like system storing complex data types, CAD systems that do not fit to the traditional data-processing framework. Database users and administrators contā€™d
  • 24. Database administrators: DBA is a person who has control over data and the associated application programs. He is the one who can define schema, install new software, enforcing security to the system, etc. Major responsibilities of DBA are: 1. Define schema and modify as per needed 2. Install new software for efficient operations 3. Enforcing and monitoring security 4. Analyzing the data stored in the DBMS 5. Keeping the backup of the DBMS periodically 6. Ensuring the state of the hardware and software Database users and administrators contā€™d
  • 25. ā€¢ Collection of operations that form a single logical unit of work are called transaction. ā€¢ Transaction management ensures that the database system have ACID properties. A = atomicity C = consistency I = isolation D = durability Transaction Management
  • 26. 1. Atomicity: Atomic means whole. This property ensures that the changes made to the database are wholly reflected or no change is made. But partial changes or execution are not made. 2. Consistency: The database must move from one consistent state to another after the execution of the transaction. Properties of Transaction Management (ACID property)
  • 27. 3. Isolation: Even if many transaction may be done at the same time but isolation ensures that if transaction A and B are executing concurrently, then either A must execute first then B is executed or, B must execute first then A is executed. 4. Durability: Changes made to the database are permanent and even if the system failure occurs, that donā€™t lead to the erase of the transaction executed previously. Properties of Transaction Management (ACID property) contā€™d
  • 29. 1. Storage Manager 2. Disk Storage 3. Query Processor Its components are:
  • 30. ā€¢ Storage manager stores, retrieves, and updates data in the database. It translates DML statements into low level statements that the database understands ā€¢ Its components are: ā€¢ Authorization and integrity manager: It checks for the correctness of the constraints specified and also checks the authenticity of the users while entering the database. ā€¢ Transaction manager: It ensures that the database follows the ACID property. ā€¢ File manager: It is responsible to manage allocation of space on the disk storage. ā€¢ Buffer manager: It is responsible for fetching data from the disk storage and to decide what data to cache in the main memory. It enables to handle data sizes which are larger than the size of the disk. 1. Storage Manager
  • 31. ā€¢ It is responsible for allocating the disk space and also for maintaining the data in the database. ā€¢ Its components are: ā€¢ Data files: It is the place where database is stored, ā€¢ Data dictionary: It stores metadata about the schema of the database. ā€¢ Indices: It provides quick access to the data items that hold particular values. 2. Disk Storage
  • 32. ā€¢ It simplifies and facilitates easy access to the data. ā€¢ It translates queries written in non-procedural language, and operates the statement. ā€¢ Its components are: ā€¢ DDL interpreter: It interprets DDL statements into low-level language understood by the system. ā€¢ DML compiler: It translates DML statements into an evaluation plan consisting low level instructions that the query evaluation engine understands. ā€¢ Query evaluation engine: It executes low level statements generated by the DML compiler. 3. Query Processor
  • 33. ā€¢ In two tier architecture, user interface and application programs are on the client side and query and transaction facility are on the server side ā€¢ When DBMS access is required, the application program establishes connection with client and server ā€¢ Client queries and server provides response to the authenticated client request/queries. ā€¢ There is direct interaction of client with the server ā€¢ The business logic coupled with either client side or the server side. Two-tier architecture
  • 35. ADVANTAGES DISADVANTAGES ā€¢ Suitable for environments where business rules do not change frequently ā€¢ number of users are limited Advantages Disadvantages ā€¢ Useless for large scale organizations ā€¢ Only a limited number of clients can access
  • 36. ā€¢ In three tier architecture, user interface and application programs are on the client side and query and transaction facility are on the server side and in between there is an intermediate layer which stores business rules(procedures/constraints) used to access data from the database. ā€¢ When DBMS access is required, the application program establishes connection with client and server but before forwarding the request of client, application rules check the client credentials. ā€¢ There is indirect interaction of client with the server but direct connection of client and application rules and application rules and the server. Three Tier Architecture
  • 38. ADVANTAGES DISADVANTAGES ā€¢ Efficiency ā€¢ Security ā€¢ Scalability ā€¢ Flexible Advantages Disadvantages ā€¢ More complex structure ā€¢ More difficult to setup and maintain ā€¢ Expensive
  • 39. ā€¢ Instance: The collection of information currently stored in the database at the particular period. ā€¢ Schema: The overall design of the database that is not expected to change frequently. ā€¢ Mapping: ā€¢ Metadata: Data about data. ā€¢ Data dictionary: A special file that stores metadata. ā€¢ Methods: Values and bodies of codes that the object contains. Common terms used in DBMS