SlideShare a Scribd company logo
1 of 40
Database Management System
Unit – 1
Introductory
concepts of
DBMS
Unit – 1: Introductory concepts of DBMS 2
Topics to be covered
• Introduction of DBMS
• Applications of DBMS
• Advantages of DBMS
• Three levels ANSI SPARC database system
• Mappings and data independence
• Database users and DBA
• Database system architecture
Unit – 1: Introductory concepts of DBMS 3
What is Database Management System (DBMS)?
 Data - Fact that can be recorded or stored
• e.g. Person Name, Age, Gender and Weight etc.
 Database - Collection of logically related data
• e.g. Books Database in Library, Student Database in University etc.
 Management - Manipulation, Searching and Security of data
• e.g. Viewing result in GTU website, Searching exam papers in GTU website
 System - Programs or tools used to manage database
• e.g. SQL Server Studio Express, Oracle
 DBMS - A Database Management System is a software for creating
and managing databases.
 Database Management System (DBMS) is a software designed to
define, manipulate, retrieve and manage data in a database.
• e.g. MS SQL Server, Oracle, My SQL, SQLite, MongoDB etc.
Unit – 1: Introductory concepts of DBMS 4
Applications
of
DBMS
Unit – 1: Introductory concepts of DBMS 5
Applications of DBMS
 DBMS is a computerized record-keeping system.
 DBMS is required where ever data need to be stored.
1. E-Commerce (Flikart, Amazon, Shopclues, eBay etc.)
2. Online Television Streaming (Hotstar, Amazon Prime etc.)
3. Social Media (WhatsApp, Facebook, Twitter, LinkedIn etc.)
4. Banking & Insurance
5. Airline & Railway
6. Universities and Colleges/Schools
7. Human Resource Department
8. Hospitals and Medical Stores
9. Government Organizations
Unit – 1: Introductory concepts of DBMS 6
1. Write down any five applications of DBMS other than the
previous slide.
Exercise
Unit – 1: Introductory concepts of DBMS 7
Advantages
of
DBMS
Unit – 1: Introductory concepts of DBMS 8
Reduce data redundancy (duplication)
Civil
Electrical Mechanical
Same data is stored at
four different places.
Database management
system can remove such
data redundancy by storing
data centrally.
Computer
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Unit – 1: Introductory concepts of DBMS 9
Remove data inconsistency
Civil
Electrical Mechanical
Same data having
different state (values)
Database management
system can keep data in
consistent state.
Computer
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Mobile no is changed
6789
6789
Unit – 1: Introductory concepts of DBMS 10
Data Isolation
• Data are scattered in various files
• Files may be in different formats
• Difficult to retrieve the appropriate data
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Emp_Name Salary Load
Prof. Ajay Shah 50000 20
Emp_Name Teaching Knowledge Rating
Prof. Ajay Shah Good V. Good 9
DBMS allow us to access (retrieve) appropriate data easily.
File
1
File
2
File
3
Unit – 1: Introductory concepts of DBMS 11
Guaranteed Atomicity
• Either transaction execute 0% or 100%.
Person A
Account A
Bal : 2000
Person B
Account B
Bal : 1000
Transfer 500
Step 1 : Debit 500 from Account A
Step 2 : Credit 500 into Account B
Sum of both account
before transfer is
3000
Sum of both account
after transfer is 3000
Sum of both
account is 2500
so inconsistent
Transaction
is failed
Unit – 1: Introductory concepts of DBMS 12
Allow to implement integrity constraints
Emp_Name Address Mobile Subject
Prof. Ajay Shah Rajkot 9825598255 CPU
Stu_Name Branch Backlogs SPI
Nirav Patel C.E. 8 2.5
Should contain exact 10 digits
Should be between 0 to 10
DBMS allows us to implement such business rules in our database.
Unit – 1: Introductory concepts of DBMS 13
Sharing of data among multiple users
Civil
Electrical Mechanical
Database management system
allows more than one user to
access same data
simultaneously.
Computer
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Want to access
Want to access
Unit – 1: Introductory concepts of DBMS 14
Restricting unauthorized access to data
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Emp_Name Salary Load
Prof. Ajay Shah 50000 20
Emp_Name Teaching Knowledge Rating
Prof. Ajay Shah Good V. Good 9
DBMS prevents unauthorized user to access data.
Faculty
of other
college
Wants to
access
Darshan
Faculty
Wants to
access
Unit – 1: Introductory concepts of DBMS 15
Providing backup and recovery services
Provides facilities to backup and restore the database in case of
failure.
Unit – 1: Introductory concepts of DBMS 16
Advantages of DBMS (Summary)
1. Reduce data redundancy (duplication)
• Avoids unnecessary duplication of data by storing data centrally.
2. Remove data inconsistency
• By eliminating redundancy, data inconsistency can be removed.
3. Data isolation
• A user can easily retrieve proper data as per his/her requirement.
4. Guaranteed atomicity
• Either transaction executes 0% or 100%.
Unit – 1: Introductory concepts of DBMS 17
Advantages of DBMS (Summary)
5. Allow implementing integrity constraints
• Business rules can be implemented such as do not allow to store amount
less than Rs. 0 in balance.
6. Sharing of data among multiple users
• More than one users can access same data at the same time.
7. Restricting unauthorized access to data
• A user can only access data which is authorized to him/her.
8. Providing backup and recovery services
• Can take a regular auto or manual backup and use it to restore the database
if it corrupts.
Unit – 1: Introductory concepts of DBMS 18
Basic Terms
 Data
• Data is raw, unorganized facts that need to be processed.
• Example: Marks of students
• Student_1 = 50/100, Student_2 = 25/100.
 Information
• When data is processed, organized, structured or presented in a given
context so as to make it useful, it is called information.
• Example: Result of students (Pass or Fail)
• Student_1 = Pass, Student_2 = Fail.
Unit – 1: Introductory concepts of DBMS 19
Basic Terms (cont…)
 Metadata
• Metadata is data about data.
• Data such as table name, column name, data type, authorized user and user
access privileges for any table is called metadata for that table.
• Metadata of above table is:
• Table name such as Faculty
• Column name such as Emp_Name, Address, Mob, Subject
• Datatype such as Varchar, Decimal
• Access privileges such as Read, Write (Update)
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Faculty
Prof. Om Patel Rajkot 6789 DBMS
Unit – 1: Introductory concepts of DBMS 20
Basic Terms (cont…)
 Data dictionary
• A data dictionary is an information repository which contains metadata.
 Data warehouse
• A data warehouse is an information repository which stores data.
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Faculty
Prof. Om Patel Rajkot 6789 DBMS
• Table Name – Faculty
• Column Name – EmpName, Address, Mob, Subject, Salary
• Datatype – Varchar, Decimal
• Access Privileges – Read, Write (Update)
Unit – 1: Introductory concepts of DBMS 21
1. Why data dictionary and data warehouse are stored in the
different places?
Exercise
Unit – 1: Introductory concepts of DBMS 22
Basic Terms (cont…)
 Field
• A field is a character or group of characters that have a specific meaning.
• E.g, the value of Emp_Name, Address, Mob etc are all fields for Faculty
table.
 Record / Tuple
• A record is a collection of logically related fields.
• E.g, the collection of fields (Emp_Name, Address, Mob, Subject & Salary)
forms a record for the Faculty.
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Faculty
Prof. Om Patel Rajkot 6789 DBMS
Prof. Ajay Shah Rajkot 1234 CPU
Prof. Ajay Shah
Rajkot
Fields
Record / Tuple
Unit – 1: Introductory concepts of DBMS 23
1. How many fields and records are there in the following table?
Emp_Name Address Mob Subject
Prof. Ajay Shah Rajkot 1234 CPU
Faculty
Prof. Om Patel Rajkot 6789 DBMS
Prof. Jay Mehta Baroda 4567 DS
Prof. Neel Jha Surat 7890 CPP
Exercise
Unit – 1: Introductory concepts of DBMS 24
3 Levels
ANSI SPARC
Database System
Unit – 1: Introductory concepts of DBMS 25
3 Levels ANSI SPARC Database System
View
Level
Logical
Level
Physical
Level
View 1 View 2 View 3
Conceptual
Level
Internal
Level
Database
User 1 User 2 User 3
How the data are actually
stored on storage devices?
What data are stored and
What relationships exist?
How data are viewed
by each users?
Unit – 1: Introductory concepts of DBMS 26
Internal level (Physical level)
 It describes how a data is stored on the storage device.
 Deals with physical storage of data.
• Structure of records on disk - files, pages, blocks
• Indexes and ordering of records
 Internal view is described by the internal schema.
Unit – 1: Introductory concepts of DBMS 27
Conceptual level (Logical level)
 What data are stored and what relationships exist among those
data?
 It hides low level complexities of physical storage.
 For Example, STUDENT database may contain STUDENT and
COURSE tables which will be visible to users but users are unaware
about their storage.
 Database administrator works at this level to determine what data
to keep in the database.
Unit – 1: Introductory concepts of DBMS 28
External level (View level)
 It describes only part of the entire database that an end user
concern or How data are viewed by each user.
 End users need to access only part of the database rather than the
entire database.
 Different user needs different views of the database, so there can
be many views in a view level abstraction of the database.
 Used by end users and application programmers.
Unit – 1: Introductory concepts of DBMS 29
Mapping
View
Level
Logical
Level
Physical
Level
View 1 View 2 View 3
Conceptual
Level
Internal
Level
Database
User 1 User 2 User 3
Request
Result
Want to access some data
Process of transforming
requests and results
between the three levels is
called mapping.
Unit – 1: Introductory concepts of DBMS 30
Data Independence
View
Level
Logical
Level
Physical
Level
View 1 View 2 View 3
Conceptual
Level
Internal
Level
Database
User 1 User 2 User 3
Ability to modify a schema
definition in one level
without affecting a schema
definition in the next higher
level.
Unit – 1: Introductory concepts of DBMS 31
Types of Data Independence
1. Physical Data Independence
2. Logical Data Independence
Unit – 1: Introductory concepts of DBMS 32
Physical Data Independence
 Physical Data Independence is the ability to modify the physical
schema without requiring any change in logical (conceptual)
schema and application programs.
 Modifications at the internal levels are occasionally necessary to
improve performance.
 Possible modifications at internal levels are changes in file
structures, compression techniques, hashing algorithms, storage
devices, etc.
Unit – 1: Introductory concepts of DBMS 33
Logical Data Independence
 Logical data independence is the ability to modify the conceptual
schema without requiring any change in application programs.
 Modification at the logical levels is necessary whenever the logical
structure of the database is changed.
 Application programs are heavily dependent on logical structures
of the data they access. So any change in logical structure also
requires programs to change.
Unit – 1: Introductory concepts of DBMS 34
• Instance
– The collection of
information stored in
the database at
particular moment is
called instance.
– Instances are changed
frequently.
• Schema
– The overall design of
database is called
database schema.
– Schemas are changed
rarely.
Instance and Schema
Emp_Name
Char(10)
Salary
Int
Prof. Ajay Shah 15000
Schema
Instance
Prof. Om Patel 10000
Unit – 1: Introductory concepts of DBMS 35
Types of database users
1. Naive Users (End Users)
• Unsophisticated users who have zero knowledge of database system
• End user interacts to database via sophisticated software or tools
• e.g. Clerk in bank
2. Application Programmers
• Programmers who write software using tools such as Java, .Net, PHP etc…
• e.g. Software developers
Unit – 1: Introductory concepts of DBMS 36
Types of database users
3. Sophisticated Users
• Interact with database system without using an application program
• Use query tools like SQL
• e.g. Analyst
4. Specialized Users (DBA)
• User write specialized database applications program
• Use administration tools
• e.g. Database Administrator
Unit – 1: Introductory concepts of DBMS 37
Role of DBA (Database Administrator)
1. Schema Definition
• DBA defines the logical schema of the database.
2. Storage Structure and Access Method Definition
• DBA decides how the data is to be represented in the database & how to
access it.
3. Defining Security and Integrity Constraints
• DBA decides on various security and integrity constraints.
4. Granting of Authorization for Data Access
• DBA determines which user needs access to which part of the database.
Unit – 1: Introductory concepts of DBMS 38
Role of DBA (Database Administrator)
5. Liaison with Users
• DBA provide necessary data to the user.
6. Assisting Application Programmer
• DBA provides assistance to application programmers to develop
application programs.
7. Monitoring Performance
• DBA ensures that better performance is maintained by making a change in
the physical or logical schema if required.
8. Backup and Recovery
• DBA backing up the database on some storage devices such as DVD, CD or
magnetic tape or remote servers and recover the system in case of
failures, such as flood or virus attack from this backup.
Unit – 1: Introductory concepts of DBMS 39
uses
write
uses uses
Database System Architecture
Naive
user
Application
programmer
Sophisticated
user
Database
administrator
Application
interfaces
Application
program
Query
tool
Administration
tool
Compiler
and linker
DML
queries
DDL
interpreter
Application
program
object code
DML compiler
and organizer
Query evaluation
engine
Buffer
manager
File
manager
Authorization and
integrity manager
Transaction
manager
Data dictionary
Statistical data
Indices
Data
Query processor
Storage manager
Disk storage
Deals with
execution of
DDL and DML
statements
Provides interface
between low-level
data stored and
application program
or queries
Interprets DDL
statements into a
set of tables
containing
metadata
Translates DML
statements into
low level
instructions that
the query
evaluation engine
understands
Executes low level
instructions
generated by DML
compiler.
Preserves atomicity
and controls
concurrency
Checks the authority
of users to access
data and integrity
constraints
Manages allocation
of space on disk
storage
Fetches data from
disk storage to
memory for being
used
To store metadata
To provide faster
access to data items
To store user data To store statistical
information about the data
Unit – 1: Introductory concepts of DBMS 40
Questions asked in GTU
1. List and explain the advantages of DBMS.
2. Draw and explain 3 level architecture of DBMS.
3. List and explain categories of database users.
4. List and explain different tasks of DBA.
5. Explain DBMS architecture with block diagram.

More Related Content

Similar to PPT_Unit-1_(DBMS).pptx

DBMS architecture &; system structure
DBMS architecture &; system  structureDBMS architecture &; system  structure
DBMS architecture &; system structureRUpaliLohar
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Dios Kurniawan
 
DBMS-material for b.tech students to learn
DBMS-material for b.tech students to learnDBMS-material for b.tech students to learn
DBMS-material for b.tech students to learnRajasekhar364622
 
Computer lecture (1) m.nasir
Computer lecture (1) m.nasirComputer lecture (1) m.nasir
Computer lecture (1) m.nasirMuhammad Nasir
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notesUTSAHSINGH2
 
1 introduction
1 introduction1 introduction
1 introductionUtkarsh De
 
Overview of Data Base Systems Concepts and Architecture
Overview of Data Base Systems Concepts and ArchitectureOverview of Data Base Systems Concepts and Architecture
Overview of Data Base Systems Concepts and ArchitectureRubal Sagwal
 
database System concepts and architecture Ch02.pdf
database System concepts and architecture Ch02.pdfdatabase System concepts and architecture Ch02.pdf
database System concepts and architecture Ch02.pdfyashasthana0158
 
DBMS_Unit_1.pptx
DBMS_Unit_1.pptxDBMS_Unit_1.pptx
DBMS_Unit_1.pptxAmit Vyas
 
DATABASE MANAGEMENT SYSTEMS.pdf
DATABASE MANAGEMENT SYSTEMS.pdfDATABASE MANAGEMENT SYSTEMS.pdf
DATABASE MANAGEMENT SYSTEMS.pdfNikitaKumari71
 
DATABASE MANAGEMENT SYSTEMS university course materials useful for students ...
DATABASE MANAGEMENT SYSTEMS  university course materials useful for students ...DATABASE MANAGEMENT SYSTEMS  university course materials useful for students ...
DATABASE MANAGEMENT SYSTEMS university course materials useful for students ...SakkaravarthiS1
 

Similar to PPT_Unit-1_(DBMS).pptx (20)

DBMS architecture &; system structure
DBMS architecture &; system  structureDBMS architecture &; system  structure
DBMS architecture &; system structure
 
DBMS
DBMS DBMS
DBMS
 
Database Lecture Notes
Database Lecture NotesDatabase Lecture Notes
Database Lecture Notes
 
Database system concepts
Database system conceptsDatabase system concepts
Database system concepts
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
 
Ch1_Intro-95(1).ppt
Ch1_Intro-95(1).pptCh1_Intro-95(1).ppt
Ch1_Intro-95(1).ppt
 
DBMS-material for b.tech students to learn
DBMS-material for b.tech students to learnDBMS-material for b.tech students to learn
DBMS-material for b.tech students to learn
 
Computer lecture (1) m.nasir
Computer lecture (1) m.nasirComputer lecture (1) m.nasir
Computer lecture (1) m.nasir
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notes
 
Lect 1-2 Zaheer Abbas
Lect 1-2 Zaheer AbbasLect 1-2 Zaheer Abbas
Lect 1-2 Zaheer Abbas
 
1 introduction
1 introduction1 introduction
1 introduction
 
Overview of Data Base Systems Concepts and Architecture
Overview of Data Base Systems Concepts and ArchitectureOverview of Data Base Systems Concepts and Architecture
Overview of Data Base Systems Concepts and Architecture
 
database System concepts and architecture Ch02.pdf
database System concepts and architecture Ch02.pdfdatabase System concepts and architecture Ch02.pdf
database System concepts and architecture Ch02.pdf
 
DBMS introduction
DBMS introductionDBMS introduction
DBMS introduction
 
Lect 1-2
Lect 1-2Lect 1-2
Lect 1-2
 
DBMS_Unit_1.pptx
DBMS_Unit_1.pptxDBMS_Unit_1.pptx
DBMS_Unit_1.pptx
 
Dbms notesization 2014
Dbms notesization 2014Dbms notesization 2014
Dbms notesization 2014
 
Unit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptxUnit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptx
 
DATABASE MANAGEMENT SYSTEMS.pdf
DATABASE MANAGEMENT SYSTEMS.pdfDATABASE MANAGEMENT SYSTEMS.pdf
DATABASE MANAGEMENT SYSTEMS.pdf
 
DATABASE MANAGEMENT SYSTEMS university course materials useful for students ...
DATABASE MANAGEMENT SYSTEMS  university course materials useful for students ...DATABASE MANAGEMENT SYSTEMS  university course materials useful for students ...
DATABASE MANAGEMENT SYSTEMS university course materials useful for students ...
 

More from ssuser046cf5

FinalPPT-StJoseph (3).pptx
FinalPPT-StJoseph (3).pptxFinalPPT-StJoseph (3).pptx
FinalPPT-StJoseph (3).pptxssuser046cf5
 
Presentations_PPT_Unit-2_25042019031227AM.pptx
Presentations_PPT_Unit-2_25042019031227AM.pptxPresentations_PPT_Unit-2_25042019031227AM.pptx
Presentations_PPT_Unit-2_25042019031227AM.pptxssuser046cf5
 
ERP Future Trends.pptx
ERP Future Trends.pptxERP Future Trends.pptx
ERP Future Trends.pptxssuser046cf5
 
TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...
TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...
TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...ssuser046cf5
 
TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...
TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...
TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...ssuser046cf5
 
ppt-190430060222.pdf
ppt-190430060222.pdfppt-190430060222.pdf
ppt-190430060222.pdfssuser046cf5
 
9781111533960_PPT_ch14.ppt
9781111533960_PPT_ch14.ppt9781111533960_PPT_ch14.ppt
9781111533960_PPT_ch14.pptssuser046cf5
 

More from ssuser046cf5 (7)

FinalPPT-StJoseph (3).pptx
FinalPPT-StJoseph (3).pptxFinalPPT-StJoseph (3).pptx
FinalPPT-StJoseph (3).pptx
 
Presentations_PPT_Unit-2_25042019031227AM.pptx
Presentations_PPT_Unit-2_25042019031227AM.pptxPresentations_PPT_Unit-2_25042019031227AM.pptx
Presentations_PPT_Unit-2_25042019031227AM.pptx
 
ERP Future Trends.pptx
ERP Future Trends.pptxERP Future Trends.pptx
ERP Future Trends.pptx
 
TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...
TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...
TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...
 
TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...
TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...
TUC_Presentation-Convergenceof_Technologies_to_Address_the_Challenges_of_the_...
 
ppt-190430060222.pdf
ppt-190430060222.pdfppt-190430060222.pdf
ppt-190430060222.pdf
 
9781111533960_PPT_ch14.ppt
9781111533960_PPT_ch14.ppt9781111533960_PPT_ch14.ppt
9781111533960_PPT_ch14.ppt
 

Recently uploaded

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Recently uploaded (20)

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 

PPT_Unit-1_(DBMS).pptx

  • 1. Database Management System Unit – 1 Introductory concepts of DBMS
  • 2. Unit – 1: Introductory concepts of DBMS 2 Topics to be covered • Introduction of DBMS • Applications of DBMS • Advantages of DBMS • Three levels ANSI SPARC database system • Mappings and data independence • Database users and DBA • Database system architecture
  • 3. Unit – 1: Introductory concepts of DBMS 3 What is Database Management System (DBMS)?  Data - Fact that can be recorded or stored • e.g. Person Name, Age, Gender and Weight etc.  Database - Collection of logically related data • e.g. Books Database in Library, Student Database in University etc.  Management - Manipulation, Searching and Security of data • e.g. Viewing result in GTU website, Searching exam papers in GTU website  System - Programs or tools used to manage database • e.g. SQL Server Studio Express, Oracle  DBMS - A Database Management System is a software for creating and managing databases.  Database Management System (DBMS) is a software designed to define, manipulate, retrieve and manage data in a database. • e.g. MS SQL Server, Oracle, My SQL, SQLite, MongoDB etc.
  • 4. Unit – 1: Introductory concepts of DBMS 4 Applications of DBMS
  • 5. Unit – 1: Introductory concepts of DBMS 5 Applications of DBMS  DBMS is a computerized record-keeping system.  DBMS is required where ever data need to be stored. 1. E-Commerce (Flikart, Amazon, Shopclues, eBay etc.) 2. Online Television Streaming (Hotstar, Amazon Prime etc.) 3. Social Media (WhatsApp, Facebook, Twitter, LinkedIn etc.) 4. Banking & Insurance 5. Airline & Railway 6. Universities and Colleges/Schools 7. Human Resource Department 8. Hospitals and Medical Stores 9. Government Organizations
  • 6. Unit – 1: Introductory concepts of DBMS 6 1. Write down any five applications of DBMS other than the previous slide. Exercise
  • 7. Unit – 1: Introductory concepts of DBMS 7 Advantages of DBMS
  • 8. Unit – 1: Introductory concepts of DBMS 8 Reduce data redundancy (duplication) Civil Electrical Mechanical Same data is stored at four different places. Database management system can remove such data redundancy by storing data centrally. Computer Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU
  • 9. Unit – 1: Introductory concepts of DBMS 9 Remove data inconsistency Civil Electrical Mechanical Same data having different state (values) Database management system can keep data in consistent state. Computer Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Mobile no is changed 6789 6789
  • 10. Unit – 1: Introductory concepts of DBMS 10 Data Isolation • Data are scattered in various files • Files may be in different formats • Difficult to retrieve the appropriate data Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Emp_Name Salary Load Prof. Ajay Shah 50000 20 Emp_Name Teaching Knowledge Rating Prof. Ajay Shah Good V. Good 9 DBMS allow us to access (retrieve) appropriate data easily. File 1 File 2 File 3
  • 11. Unit – 1: Introductory concepts of DBMS 11 Guaranteed Atomicity • Either transaction execute 0% or 100%. Person A Account A Bal : 2000 Person B Account B Bal : 1000 Transfer 500 Step 1 : Debit 500 from Account A Step 2 : Credit 500 into Account B Sum of both account before transfer is 3000 Sum of both account after transfer is 3000 Sum of both account is 2500 so inconsistent Transaction is failed
  • 12. Unit – 1: Introductory concepts of DBMS 12 Allow to implement integrity constraints Emp_Name Address Mobile Subject Prof. Ajay Shah Rajkot 9825598255 CPU Stu_Name Branch Backlogs SPI Nirav Patel C.E. 8 2.5 Should contain exact 10 digits Should be between 0 to 10 DBMS allows us to implement such business rules in our database.
  • 13. Unit – 1: Introductory concepts of DBMS 13 Sharing of data among multiple users Civil Electrical Mechanical Database management system allows more than one user to access same data simultaneously. Computer Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Want to access Want to access
  • 14. Unit – 1: Introductory concepts of DBMS 14 Restricting unauthorized access to data Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Emp_Name Salary Load Prof. Ajay Shah 50000 20 Emp_Name Teaching Knowledge Rating Prof. Ajay Shah Good V. Good 9 DBMS prevents unauthorized user to access data. Faculty of other college Wants to access Darshan Faculty Wants to access
  • 15. Unit – 1: Introductory concepts of DBMS 15 Providing backup and recovery services Provides facilities to backup and restore the database in case of failure.
  • 16. Unit – 1: Introductory concepts of DBMS 16 Advantages of DBMS (Summary) 1. Reduce data redundancy (duplication) • Avoids unnecessary duplication of data by storing data centrally. 2. Remove data inconsistency • By eliminating redundancy, data inconsistency can be removed. 3. Data isolation • A user can easily retrieve proper data as per his/her requirement. 4. Guaranteed atomicity • Either transaction executes 0% or 100%.
  • 17. Unit – 1: Introductory concepts of DBMS 17 Advantages of DBMS (Summary) 5. Allow implementing integrity constraints • Business rules can be implemented such as do not allow to store amount less than Rs. 0 in balance. 6. Sharing of data among multiple users • More than one users can access same data at the same time. 7. Restricting unauthorized access to data • A user can only access data which is authorized to him/her. 8. Providing backup and recovery services • Can take a regular auto or manual backup and use it to restore the database if it corrupts.
  • 18. Unit – 1: Introductory concepts of DBMS 18 Basic Terms  Data • Data is raw, unorganized facts that need to be processed. • Example: Marks of students • Student_1 = 50/100, Student_2 = 25/100.  Information • When data is processed, organized, structured or presented in a given context so as to make it useful, it is called information. • Example: Result of students (Pass or Fail) • Student_1 = Pass, Student_2 = Fail.
  • 19. Unit – 1: Introductory concepts of DBMS 19 Basic Terms (cont…)  Metadata • Metadata is data about data. • Data such as table name, column name, data type, authorized user and user access privileges for any table is called metadata for that table. • Metadata of above table is: • Table name such as Faculty • Column name such as Emp_Name, Address, Mob, Subject • Datatype such as Varchar, Decimal • Access privileges such as Read, Write (Update) Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Faculty Prof. Om Patel Rajkot 6789 DBMS
  • 20. Unit – 1: Introductory concepts of DBMS 20 Basic Terms (cont…)  Data dictionary • A data dictionary is an information repository which contains metadata.  Data warehouse • A data warehouse is an information repository which stores data. Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Faculty Prof. Om Patel Rajkot 6789 DBMS • Table Name – Faculty • Column Name – EmpName, Address, Mob, Subject, Salary • Datatype – Varchar, Decimal • Access Privileges – Read, Write (Update)
  • 21. Unit – 1: Introductory concepts of DBMS 21 1. Why data dictionary and data warehouse are stored in the different places? Exercise
  • 22. Unit – 1: Introductory concepts of DBMS 22 Basic Terms (cont…)  Field • A field is a character or group of characters that have a specific meaning. • E.g, the value of Emp_Name, Address, Mob etc are all fields for Faculty table.  Record / Tuple • A record is a collection of logically related fields. • E.g, the collection of fields (Emp_Name, Address, Mob, Subject & Salary) forms a record for the Faculty. Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Faculty Prof. Om Patel Rajkot 6789 DBMS Prof. Ajay Shah Rajkot 1234 CPU Prof. Ajay Shah Rajkot Fields Record / Tuple
  • 23. Unit – 1: Introductory concepts of DBMS 23 1. How many fields and records are there in the following table? Emp_Name Address Mob Subject Prof. Ajay Shah Rajkot 1234 CPU Faculty Prof. Om Patel Rajkot 6789 DBMS Prof. Jay Mehta Baroda 4567 DS Prof. Neel Jha Surat 7890 CPP Exercise
  • 24. Unit – 1: Introductory concepts of DBMS 24 3 Levels ANSI SPARC Database System
  • 25. Unit – 1: Introductory concepts of DBMS 25 3 Levels ANSI SPARC Database System View Level Logical Level Physical Level View 1 View 2 View 3 Conceptual Level Internal Level Database User 1 User 2 User 3 How the data are actually stored on storage devices? What data are stored and What relationships exist? How data are viewed by each users?
  • 26. Unit – 1: Introductory concepts of DBMS 26 Internal level (Physical level)  It describes how a data is stored on the storage device.  Deals with physical storage of data. • Structure of records on disk - files, pages, blocks • Indexes and ordering of records  Internal view is described by the internal schema.
  • 27. Unit – 1: Introductory concepts of DBMS 27 Conceptual level (Logical level)  What data are stored and what relationships exist among those data?  It hides low level complexities of physical storage.  For Example, STUDENT database may contain STUDENT and COURSE tables which will be visible to users but users are unaware about their storage.  Database administrator works at this level to determine what data to keep in the database.
  • 28. Unit – 1: Introductory concepts of DBMS 28 External level (View level)  It describes only part of the entire database that an end user concern or How data are viewed by each user.  End users need to access only part of the database rather than the entire database.  Different user needs different views of the database, so there can be many views in a view level abstraction of the database.  Used by end users and application programmers.
  • 29. Unit – 1: Introductory concepts of DBMS 29 Mapping View Level Logical Level Physical Level View 1 View 2 View 3 Conceptual Level Internal Level Database User 1 User 2 User 3 Request Result Want to access some data Process of transforming requests and results between the three levels is called mapping.
  • 30. Unit – 1: Introductory concepts of DBMS 30 Data Independence View Level Logical Level Physical Level View 1 View 2 View 3 Conceptual Level Internal Level Database User 1 User 2 User 3 Ability to modify a schema definition in one level without affecting a schema definition in the next higher level.
  • 31. Unit – 1: Introductory concepts of DBMS 31 Types of Data Independence 1. Physical Data Independence 2. Logical Data Independence
  • 32. Unit – 1: Introductory concepts of DBMS 32 Physical Data Independence  Physical Data Independence is the ability to modify the physical schema without requiring any change in logical (conceptual) schema and application programs.  Modifications at the internal levels are occasionally necessary to improve performance.  Possible modifications at internal levels are changes in file structures, compression techniques, hashing algorithms, storage devices, etc.
  • 33. Unit – 1: Introductory concepts of DBMS 33 Logical Data Independence  Logical data independence is the ability to modify the conceptual schema without requiring any change in application programs.  Modification at the logical levels is necessary whenever the logical structure of the database is changed.  Application programs are heavily dependent on logical structures of the data they access. So any change in logical structure also requires programs to change.
  • 34. Unit – 1: Introductory concepts of DBMS 34 • Instance – The collection of information stored in the database at particular moment is called instance. – Instances are changed frequently. • Schema – The overall design of database is called database schema. – Schemas are changed rarely. Instance and Schema Emp_Name Char(10) Salary Int Prof. Ajay Shah 15000 Schema Instance Prof. Om Patel 10000
  • 35. Unit – 1: Introductory concepts of DBMS 35 Types of database users 1. Naive Users (End Users) • Unsophisticated users who have zero knowledge of database system • End user interacts to database via sophisticated software or tools • e.g. Clerk in bank 2. Application Programmers • Programmers who write software using tools such as Java, .Net, PHP etc… • e.g. Software developers
  • 36. Unit – 1: Introductory concepts of DBMS 36 Types of database users 3. Sophisticated Users • Interact with database system without using an application program • Use query tools like SQL • e.g. Analyst 4. Specialized Users (DBA) • User write specialized database applications program • Use administration tools • e.g. Database Administrator
  • 37. Unit – 1: Introductory concepts of DBMS 37 Role of DBA (Database Administrator) 1. Schema Definition • DBA defines the logical schema of the database. 2. Storage Structure and Access Method Definition • DBA decides how the data is to be represented in the database & how to access it. 3. Defining Security and Integrity Constraints • DBA decides on various security and integrity constraints. 4. Granting of Authorization for Data Access • DBA determines which user needs access to which part of the database.
  • 38. Unit – 1: Introductory concepts of DBMS 38 Role of DBA (Database Administrator) 5. Liaison with Users • DBA provide necessary data to the user. 6. Assisting Application Programmer • DBA provides assistance to application programmers to develop application programs. 7. Monitoring Performance • DBA ensures that better performance is maintained by making a change in the physical or logical schema if required. 8. Backup and Recovery • DBA backing up the database on some storage devices such as DVD, CD or magnetic tape or remote servers and recover the system in case of failures, such as flood or virus attack from this backup.
  • 39. Unit – 1: Introductory concepts of DBMS 39 uses write uses uses Database System Architecture Naive user Application programmer Sophisticated user Database administrator Application interfaces Application program Query tool Administration tool Compiler and linker DML queries DDL interpreter Application program object code DML compiler and organizer Query evaluation engine Buffer manager File manager Authorization and integrity manager Transaction manager Data dictionary Statistical data Indices Data Query processor Storage manager Disk storage Deals with execution of DDL and DML statements Provides interface between low-level data stored and application program or queries Interprets DDL statements into a set of tables containing metadata Translates DML statements into low level instructions that the query evaluation engine understands Executes low level instructions generated by DML compiler. Preserves atomicity and controls concurrency Checks the authority of users to access data and integrity constraints Manages allocation of space on disk storage Fetches data from disk storage to memory for being used To store metadata To provide faster access to data items To store user data To store statistical information about the data
  • 40. Unit – 1: Introductory concepts of DBMS 40 Questions asked in GTU 1. List and explain the advantages of DBMS. 2. Draw and explain 3 level architecture of DBMS. 3. List and explain categories of database users. 4. List and explain different tasks of DBA. 5. Explain DBMS architecture with block diagram.