SlideShare a Scribd company logo
CChhaapptteerr 11:: IInnttrroodduuccttiioonn
Database Management System 
(DBMS) 
 Definition: DBMS contains information about a particular 
enterprise, like- 
 Collection of interrelated data 
 Set of programs to access the data 
 An environment that is both convenient and efficient to use 
 Databases can be very large. 
 Database Applications: 
 Banking: transactions 
 Airlines: reservations, schedules 
 Universities: registration, grades 
 Sales: customers, products, purchases 
 Online retailers: order tracking, customized recommendations 
 Manufacturing: production, inventory, orders, supply chain 
 Human resources: employee records, salaries, tax 
deductions 
 Example, University database.
Drawbacks of using file systems to 
store data 
 Data redundancy and inconsistency 
 Multiple file formats, duplication of information in 
different files 
 Difficulty in accessing data 
 Need to write a new program to carry out each new 
task 
 Data isolation — multiple files and formats 
 Integrity problems 
 Hard to add Integrity constraints (e.g., account 
balance  0) or change existing ones 
 Atomicity of updates 
 Failures may leave database in an inconsistent state with 
partial updates carried out 
 Example: Transfer of funds from one account to another 
should either complete or not happen at all
Drawbacks of using file systems to store data 
(Cont.) 
 Concurrent access by multiple users 
 Concurrent access needed for performance 
 Uncontrolled concurrent accesses can lead to inconsistencies 
– Example: Two people reading a balance (say 100) and 
updating it by withdrawing money (say 50 each) at the same 
time 
 Security problems 
 Hard to provide user access to some, but not all, data 
Database systems offer solutions to all the above problems
Levels of Abstraction 
 Physical level: lowest level of abstraction. Describes how a 
record (e.g., customer) is stored. Very much complex. 
 Logical level: next-higher level. Describes data stored in 
database, and the relationships among the data. 
type instructor = record 
ID : string; 
name : string; 
dept_name : string; 
salary : integer; 
end; 
 View level: application programs hide details of data types. 
Views can also hide information (such as an employee’s salary) 
for security purposes.
View of Data 
An architecture for a database system
Instances and Schemas 
 Similar to types and variables in programming languages 
 SScchheemmaa – the logical structure of the database 
 Example: The database consists of information about a set of 
customers and accounts and the relationship between them 
 Analogous to type information of a variable in a program 
 Physical schema: database design at the physical level 
 Logical schema: database design at the logical level 
 Instance – the actual content of the database at a particular point in 
time 
 Analogous to the value of a variable 
 Physical Data Independence – the ability to modify the physical 
schema without changing the logical schema 
 Applications depend on the logical schema 
 In general, the interfaces between the various levels and components 
should be well defined so that changes in some parts do not seriously 
influence others.
Data Models 
 Definition: A collection of tools for describing 
 Data 
 Data relationships 
 Data semantics 
 Data constraints 
 Types of data models: 
 Relational model 
 Entity-Relationship data model (mainly for database 
design) 
 Object-based data models (Object-oriented and Object-relational) 
 Semistructured data model (XML) 
 Other older models: 
 Network model 
 Hierarchical model
Relational Model 
 Example of tabular data in the relational model 
Columns 
Rows
A Sample Relational Database
Data Manipulation Language 
(DML) 
 Language for accessing and manipulating the data organized 
by the appropriate data model 
 DML also known as query language 
 Two classes of languages 
 Procedural – user specifies what data is required and 
how to get those data 
 Declarative (nonprocedural) – user specifies what 
data is required without specifying how to get those data 
 SQL is the most widely used query language
Data Definition Language (DDL) 
 Specification notation for defining the database schema 
Example: create table instructor ( 
ID char(5), 
name varchar(20), 
dept_name varchar(20), 
salary numeric(8,2)) 
 DDL compiler generates a set of table templates stored in a data 
dictionary 
 Data dictionary: contains metadata (i.e., data about data) of a 
database. It has- 
 Database schema 
 Integrity constraints 
 Primary key (ID uniquely identifies instructors) 
 Referential integrity (references constraint in SQL) 
 Authorization
The Entity-Relationship Model 
Models an enterprise as a collection of entities and 
relationships 
Entity: a “thing” or “object” in the enterprise that is 
distinguishable from other objects 
 Described by a set of attributes 
Relationship: an association among several entities 
Represented diagrammatically by an entity-relationship 
diagram: 
What happened to dept_name of instructor and student?
Storage Management 
Storage manager is a program module that provides the 
interface between the low-level data stored in the database 
and the application programs and queries submitted to the 
system. 
The storage manager is responsible to the following tasks: 
Interaction with the file manager 
Efficient storing, retrieving and updating of data 
Provides: 
Storage access 
File organization 
Indexing and hashing
Query Processing 
1. Parsing and translation 
2. Optimization 
3. Evaluation
Query Processing (Cont.) 
Alternative ways of evaluating a given query 
Equivalent expressions 
Different algorithms for each operation 
Cost difference between a good and a bad way of evaluating a 
query can be enormous 
Need to estimate the cost of operations 
Depends critically on statistical information about relations 
which the database must maintain 
Need to estimate statistics for intermediate results to 
compute cost of complex expressions
Transaction Management 
A transaction is a collection of operations that performs a 
single logical function in a database application 
Transaction-management component ensures that the 
database remains in a consistent (correct) state despite 
system failures (e.g., power failures and operating system 
crashes) and transaction failures. 
Concurrency-control manager controls the interaction 
among the concurrent transactions, to ensure the 
consistency of the database.
Database Architecture 
The architecture of a database systems is greatly influenced by 
the underlying computer system on which the database is 
running: 
Centralized 
Client-server 
Parallel (multi-processor) 
Distributed
Ch1- Introduction to dbms
Ch1- Introduction to dbms
Thank you
Ad

More Related Content

What's hot (20)

Database architecture
Database architectureDatabase architecture
Database architecture
VENNILAV6
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
SHIKHA GAUTAM
 
SQL Views
SQL ViewsSQL Views
SQL Views
baabtra.com - No. 1 supplier of quality freshers
 
Schema
SchemaSchema
Schema
Pragya Srivastava
 
Basic Concept of Database
Basic Concept of DatabaseBasic Concept of Database
Basic Concept of Database
Marlon Jamera
 
Lesson 1: Introduction to DBMS
Lesson 1: Introduction to DBMSLesson 1: Introduction to DBMS
Lesson 1: Introduction to DBMS
Amrit Kaur
 
Database fragmentation
Database fragmentationDatabase fragmentation
Database fragmentation
Punjab College Of Technical Education
 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architectures
Pooja Dixit
 
The database applications
The database applicationsThe database applications
The database applications
Dolat Ram
 
database
databasedatabase
database
Shwetanshu Gupta
 
database language ppt.pptx
database language ppt.pptxdatabase language ppt.pptx
database language ppt.pptx
Anusha sivakumar
 
Data base management system and Architecture ppt.
Data base management system and Architecture ppt.Data base management system and Architecture ppt.
Data base management system and Architecture ppt.
AnkitAbhilashSwain
 
Dbms database models
Dbms database modelsDbms database models
Dbms database models
sanjeev kumar suman
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database Models
Murassa Gillani
 
Architecture of-dbms-and-data-independence
Architecture of-dbms-and-data-independenceArchitecture of-dbms-and-data-independence
Architecture of-dbms-and-data-independence
Anuj Modi
 
Dbms ppt
Dbms pptDbms ppt
Dbms ppt
Chinnu Shimna
 
Database Management System Introduction
Database Management System IntroductionDatabase Management System Introduction
Database Management System Introduction
Smriti Jain
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
Megha yadav
 
SQL Views
SQL ViewsSQL Views
SQL Views
Aaron Buma
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
Pradnya Saval
 

Viewers also liked (8)

Arrays in CPP
Arrays in CPPArrays in CPP
Arrays in CPP
Shakila Mahjabin
 
Computer processing
Computer processingComputer processing
Computer processing
Shakila Mahjabin
 
Normalization
NormalizationNormalization
Normalization
Shakila Mahjabin
 
String operation
String operationString operation
String operation
Shakila Mahjabin
 
Arrays
ArraysArrays
Arrays
Shakila Mahjabin
 
Merge sort and quick sort
Merge sort and quick sortMerge sort and quick sort
Merge sort and quick sort
Shakila Mahjabin
 
SQL : introduction
SQL : introductionSQL : introduction
SQL : introduction
Shakila Mahjabin
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
Shakila Mahjabin
 
Ad

Similar to Ch1- Introduction to dbms (20)

M.sc. engg (ict) admission guide database management system 4
M.sc. engg (ict) admission guide   database management system 4M.sc. engg (ict) admission guide   database management system 4
M.sc. engg (ict) admission guide database management system 4
Syed Ariful Islam Emon
 
DIGITAL CONTENT for the help of students.pptx
DIGITAL CONTENT for the help of students.pptxDIGITAL CONTENT for the help of students.pptx
DIGITAL CONTENT for the help of students.pptx
aakashrathi20022016
 
Database Management System, Lecture-1
Database Management System, Lecture-1Database Management System, Lecture-1
Database Management System, Lecture-1
Sonia Mim
 
DBMS - Introduction
DBMS - IntroductionDBMS - Introduction
DBMS - Introduction
JOSEPHINE297640
 
Dbms unit01
Dbms unit01Dbms unit01
Dbms unit01
Ila Chandana
 
Unit01 dbms
Unit01 dbmsUnit01 dbms
Unit01 dbms
arnold 7490
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
Siti Ismail
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdf
parveen204931475
 
Lecture 1 to 3intro to normalization in database
Lecture 1 to 3intro to  normalization in databaseLecture 1 to 3intro to  normalization in database
Lecture 1 to 3intro to normalization in database
maqsoodahmedbscsfkhp
 
Ch1
Ch1Ch1
Ch1
guest5c197d5
 
Ch1 2
Ch1 2Ch1 2
Ch1 2
Bibin Devadas
 
Ch1
Ch1Ch1
Ch1
CAG
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
koolkampus
 
21UCAC 41 Database Management System.ppt
21UCAC 41 Database Management System.ppt21UCAC 41 Database Management System.ppt
21UCAC 41 Database Management System.ppt
ssuser7f90ae
 
Database Systems Concepts, 5th Ed
Database Systems Concepts, 5th EdDatabase Systems Concepts, 5th Ed
Database Systems Concepts, 5th Ed
Daniel Francisco Tamayo
 
dbms notes.ppt
dbms notes.pptdbms notes.ppt
dbms notes.ppt
Ranjit273515
 
Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdf
MrjJoker1
 
Dbms 1
Dbms 1Dbms 1
Dbms 1
kartik_chell
 
DBMS Unit 1 nice content please download it
DBMS Unit 1 nice content please download itDBMS Unit 1 nice content please download it
DBMS Unit 1 nice content please download it
kelpwadwise
 
Abhishek_DBMS-ch1_Database_management.ppsx
Abhishek_DBMS-ch1_Database_management.ppsxAbhishek_DBMS-ch1_Database_management.ppsx
Abhishek_DBMS-ch1_Database_management.ppsx
SANJEETKUMAR378234
 
M.sc. engg (ict) admission guide database management system 4
M.sc. engg (ict) admission guide   database management system 4M.sc. engg (ict) admission guide   database management system 4
M.sc. engg (ict) admission guide database management system 4
Syed Ariful Islam Emon
 
DIGITAL CONTENT for the help of students.pptx
DIGITAL CONTENT for the help of students.pptxDIGITAL CONTENT for the help of students.pptx
DIGITAL CONTENT for the help of students.pptx
aakashrathi20022016
 
Database Management System, Lecture-1
Database Management System, Lecture-1Database Management System, Lecture-1
Database Management System, Lecture-1
Sonia Mim
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
Siti Ismail
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdf
parveen204931475
 
Lecture 1 to 3intro to normalization in database
Lecture 1 to 3intro to  normalization in databaseLecture 1 to 3intro to  normalization in database
Lecture 1 to 3intro to normalization in database
maqsoodahmedbscsfkhp
 
Ch1
Ch1Ch1
Ch1
CAG
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
koolkampus
 
21UCAC 41 Database Management System.ppt
21UCAC 41 Database Management System.ppt21UCAC 41 Database Management System.ppt
21UCAC 41 Database Management System.ppt
ssuser7f90ae
 
Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdf
MrjJoker1
 
DBMS Unit 1 nice content please download it
DBMS Unit 1 nice content please download itDBMS Unit 1 nice content please download it
DBMS Unit 1 nice content please download it
kelpwadwise
 
Abhishek_DBMS-ch1_Database_management.ppsx
Abhishek_DBMS-ch1_Database_management.ppsxAbhishek_DBMS-ch1_Database_management.ppsx
Abhishek_DBMS-ch1_Database_management.ppsx
SANJEETKUMAR378234
 
Ad

More from Shakila Mahjabin (7)

CSC 433 Sample normalization SQL Question
CSC 433 Sample normalization SQL QuestionCSC 433 Sample normalization SQL Question
CSC 433 Sample normalization SQL Question
Shakila Mahjabin
 
Solution of Erds
Solution of ErdsSolution of Erds
Solution of Erds
Shakila Mahjabin
 
Stack and queue
Stack and queueStack and queue
Stack and queue
Shakila Mahjabin
 
Algo analysis
Algo analysisAlgo analysis
Algo analysis
Shakila Mahjabin
 
Codes on structures
Codes on structuresCodes on structures
Codes on structures
Shakila Mahjabin
 
array, function, pointer, pattern matching
array, function, pointer, pattern matchingarray, function, pointer, pattern matching
array, function, pointer, pattern matching
Shakila Mahjabin
 
Data Structure Basics
Data Structure BasicsData Structure Basics
Data Structure Basics
Shakila Mahjabin
 

Recently uploaded (20)

YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 

Ch1- Introduction to dbms

  • 2. Database Management System (DBMS) Definition: DBMS contains information about a particular enterprise, like- Collection of interrelated data Set of programs to access the data An environment that is both convenient and efficient to use Databases can be very large. Database Applications: Banking: transactions Airlines: reservations, schedules Universities: registration, grades Sales: customers, products, purchases Online retailers: order tracking, customized recommendations Manufacturing: production, inventory, orders, supply chain Human resources: employee records, salaries, tax deductions Example, University database.
  • 3. Drawbacks of using file systems to store data Data redundancy and inconsistency  Multiple file formats, duplication of information in different files Difficulty in accessing data  Need to write a new program to carry out each new task Data isolation — multiple files and formats Integrity problems  Hard to add Integrity constraints (e.g., account balance 0) or change existing ones Atomicity of updates  Failures may leave database in an inconsistent state with partial updates carried out  Example: Transfer of funds from one account to another should either complete or not happen at all
  • 4. Drawbacks of using file systems to store data (Cont.) Concurrent access by multiple users  Concurrent access needed for performance  Uncontrolled concurrent accesses can lead to inconsistencies – Example: Two people reading a balance (say 100) and updating it by withdrawing money (say 50 each) at the same time Security problems  Hard to provide user access to some, but not all, data Database systems offer solutions to all the above problems
  • 5. Levels of Abstraction Physical level: lowest level of abstraction. Describes how a record (e.g., customer) is stored. Very much complex. Logical level: next-higher level. Describes data stored in database, and the relationships among the data. type instructor = record ID : string; name : string; dept_name : string; salary : integer; end; View level: application programs hide details of data types. Views can also hide information (such as an employee’s salary) for security purposes.
  • 6. View of Data An architecture for a database system
  • 7. Instances and Schemas Similar to types and variables in programming languages SScchheemmaa – the logical structure of the database Example: The database consists of information about a set of customers and accounts and the relationship between them Analogous to type information of a variable in a program Physical schema: database design at the physical level Logical schema: database design at the logical level Instance – the actual content of the database at a particular point in time Analogous to the value of a variable Physical Data Independence – the ability to modify the physical schema without changing the logical schema Applications depend on the logical schema In general, the interfaces between the various levels and components should be well defined so that changes in some parts do not seriously influence others.
  • 8. Data Models Definition: A collection of tools for describing Data Data relationships Data semantics Data constraints Types of data models: Relational model Entity-Relationship data model (mainly for database design) Object-based data models (Object-oriented and Object-relational) Semistructured data model (XML) Other older models: Network model Hierarchical model
  • 9. Relational Model Example of tabular data in the relational model Columns Rows
  • 11. Data Manipulation Language (DML) Language for accessing and manipulating the data organized by the appropriate data model DML also known as query language Two classes of languages Procedural – user specifies what data is required and how to get those data Declarative (nonprocedural) – user specifies what data is required without specifying how to get those data SQL is the most widely used query language
  • 12. Data Definition Language (DDL) Specification notation for defining the database schema Example: create table instructor ( ID char(5), name varchar(20), dept_name varchar(20), salary numeric(8,2)) DDL compiler generates a set of table templates stored in a data dictionary Data dictionary: contains metadata (i.e., data about data) of a database. It has- Database schema Integrity constraints  Primary key (ID uniquely identifies instructors)  Referential integrity (references constraint in SQL) Authorization
  • 13. The Entity-Relationship Model Models an enterprise as a collection of entities and relationships Entity: a “thing” or “object” in the enterprise that is distinguishable from other objects  Described by a set of attributes Relationship: an association among several entities Represented diagrammatically by an entity-relationship diagram: What happened to dept_name of instructor and student?
  • 14. Storage Management Storage manager is a program module that provides the interface between the low-level data stored in the database and the application programs and queries submitted to the system. The storage manager is responsible to the following tasks: Interaction with the file manager Efficient storing, retrieving and updating of data Provides: Storage access File organization Indexing and hashing
  • 15. Query Processing 1. Parsing and translation 2. Optimization 3. Evaluation
  • 16. Query Processing (Cont.) Alternative ways of evaluating a given query Equivalent expressions Different algorithms for each operation Cost difference between a good and a bad way of evaluating a query can be enormous Need to estimate the cost of operations Depends critically on statistical information about relations which the database must maintain Need to estimate statistics for intermediate results to compute cost of complex expressions
  • 17. Transaction Management A transaction is a collection of operations that performs a single logical function in a database application Transaction-management component ensures that the database remains in a consistent (correct) state despite system failures (e.g., power failures and operating system crashes) and transaction failures. Concurrency-control manager controls the interaction among the concurrent transactions, to ensure the consistency of the database.
  • 18. Database Architecture The architecture of a database systems is greatly influenced by the underlying computer system on which the database is running: Centralized Client-server Parallel (multi-processor) Distributed