SlideShare a Scribd company logo
DBDA
(Database Design and Applications)
CH1
By: Prof. Ganesh Ingle
Session objective
INTRODUCTION
FILE SYSTEM VS DBMS/RDBMS
THREE SCHEMA ARCHITECURE OF DBMS
DATA INDEPENDANCE
DBMS ARCHITECTURE
Introduction
Introduction
Introduction
Introduction
Introduction
Introduction (File system vs DBMS)
DBMS Flat File Management System
Multi-user access It does not support multi-user access
Design to fulfill the need for small and large
businesses
It is only limited to smaller DBMS system.
Remove redundancy and Integrity Redundancy and Integrity issues
Expensive. But in the long term Total Cost of
Ownership is cheap
It's cheaper
Easy to implement complicated transactions No support for complicated transactions
History of DBMS
Here, are the important landmarks from the history:
1960 - Charles Bachman designed first DBMS system
1970 - Codd introduced IBM'S Information Management System (IMS)
1976- Peter Chen coined and defined the Entity-relationship model also
know as the ER model
1980 - Relational Model becomes a widely accepted database component
1985- Object-oriented DBMS develops.
1990s- Incorporation of object-orientation in relational DBMS.
1991- Microsoft ships MS access, a personal DBMS and that displaces all
other personal DBMS products.
1995: First Internet database applications
1997: XML applied to database processing. Many vendors begin to
integrate XML into DBMS products.
Characteristics of DBMS
•Provides security and removes redundancy
•Self-describing nature of a database system
•Insulation between programs and data abstraction
•Support of multiple views of the data
•Sharing of data and multiuser transaction processing
•DBMS allows entities and relations among them to form
tables.
•It follows the ACID concept ( Atomicity, Consistency,
Isolation, and Durability).
•DBMS supports multi-user environment that allows users
to access and manipulate data in parallel.
Characteristics of DBMS
•Provides security and removes redundancy
•Self-describing nature of a database system
•Insulation between programs and data abstraction
•Support of multiple views of the data
Sharing of dPopular DBMS Software
Here, is the list of some popular DBMS system:
 MySQL
 Microsoft Access
 Oracle
 PostgreSQL
 dBASE
 FoxPro
 SQLite
 IBM DB2
 LibreOffice Base
 MariaDB
 Microsoft SQL Server etc.
DBMS Advantages
DBMS may offer plenty of advantages
 DBMS offers a variety of techniques to store & retrieve data
 DBMS serves as an efficient handler to balance the needs of multiple applications using
the same data
 Uniform administration procedures for data
 Application programmers never exposed to details of data representation and storage.
 A DBMS uses various powerful functions to store and retrieve data efficiently.
 Offers Data Integrity and Security
 The DBMS implies integrity constraints to get a high level of protection against prohibited
access to data.
 A DBMS schedules concurrent access to the data in such a manner that only one user can
access the same data at a time
 Reduced Application Development Time
DBMS Disadvantages
DBMS may offer plenty of advantages but, it has certain flaws-
 Cost of Hardware and Software of a DBMS is quite high which increases the budget of
your organization.
 Most database management systems are often complex systems, so the training for users
to use the DBMS is required.
 In some organizations, all data is integrated into a single database which can be
damaged because of electric failure or database is corrupted on the storage media
 Use of the same program at a time by many users sometimes lead to the loss of some
data.
 DBMS can't perform sophisticated calculations DBMS may offer plenty of advantages but,
it has certain flaws-
 Cost of Hardware and Software of a DBMS is quite high which increases the budget of
your organization.
 Most database management systems are often complex systems, so the training for users
to use the DBMS is required.
 In some organizations, all data is integrated into a single database which can be
damaged because of electric failure or database is corrupted on the storage media
 Use of the same program at a time by many users sometimes lead to the loss of some
data.
 DBMS can't perform sophisticated calculations
DBMS Users
Component Name Task
Application Programmers The Application programmers write programs in
various programming languages to interact with
databases.
Database Administrators Database Admin is responsible for managing the
entire DBMS system. He/She is called Database
admin or DBA.
End-Users The end users are the people who interact with
the database management system. They conduct
various operations on database like retrieving,
updating, deleting, etc.
DBMS Three Schema Architecture
DBMS Three Schema Architecture
DBMS Three Schema Architecture
DBMS Three Schema Architecture
DBMS Three Schema Architecture
DBMS Three Schema Architecture
DBMS Three Schema Architecture
Data Independence
Data Independence
Data Independence
Session objective
Quick look of previous Session
EER Concepts and notations
Modelling class hierarchies
Tutorial 1: EER modelling
Relational model concepts
Relational data model constraints
Mapping ER Constructs to relations
DATA Association(ER Model)
Participation constraint
How an entity participate in a relationship???
Total: If every entity in E participates in t=atleast one
relationship in R
Eg. Student elective subjects at least register for a course.
Partial: Some entities in E participates in in relationship R
Eg. Student and CR relation( not all the students are
participated for being CR)
ER ASSIGNMENT
Draw an ER diagram with following constraint
Design a database for film
There are no actors in this database that have been in no movies.
b. There are some actors who have acted in more than ten movies.
c. Some actors have done a lead role in multiple movies.
d. A movie can have only a maximum of two lead actors.
e. Every director has been an actor in some movie.
f. No producer has ever been an actor.
g. A producer cannot be an actor in some other movie.
h. There are movies with more than a dozen actors.
i. Some producers have been a director as well.
j. Most movies have one director and one producer.
k. Some movies have one director but several producers.
l. There are some actors who have done a lead role, directed a movie,
and produced some movie.
m. No movie has a director who also acted in that movie.
ER ASSIGNMENT
ER ASSIGNMENT
EER features
1)Generalization: Abstracting process of viewing sets of objects as a
single general class. Bottom up approach.
2) Specialization: Introducing new characteristics to an existing class of
objects to create new class .Top down approach.
3)Aggregation :Compiling information on an object ,thereby abstracting
higher level object.
Sub class
Super class
Inheritance and types WRT to DBMS
Specialization
Generalization
 ER diagram to set of Table conversion i.e. converting ER model to
relational data model .
 In relational data model we represent real model in to collection of
relations.
 Relation=table
 Domain???
 Tuple/record/row
 Attribute/column/
Relational model concepts
Relational model concepts
Relational data model constraints Knowing all key concepts
PRN SName PPNo Lisc-no DOB Fname
201519TW700
DHAYREEKAR
SOHAM
RAJENDRA
J8369854 AQ1254 14/02/199
4
Rajendra
dhayrikar
201519TW721
SUTAR VISHAL
VIVEK
B8369859 AW2568 12/02/199
4
Vivek sutar
201437tp10
1
Karneet
singh
H9369860 PQR124
5
10/02/199
4
Jaspreet
singh
201537tp14
5
Sheetal Anil
Bhokare
Patil
M9369950 ABC143 18/12/198
7
Anil Bhokare
Patil
Relational data model constraints Key in Relation
A key allows to identify a set of attributes to distinguish
entities from each other.
Key attribute set KAS
Key attribute KA
Types of key:
Superkey: Set of one or more attributes that allows to
identify an entity uniquely.(It may contain extra
attributes)eg. {Std_Id,Std_Name,Mobile_no,EmailId}
Candidate key: It is minimal set of super key which can
uniquely identify an entity. eg. {Std_Id} not id and name
both.
New definition: SK for which no subset is a superkey.
Relational data model constraints Key in Relation
Note : More than one CK is possible in relation
Suppose we have 5 CK
Primary key: vvimp
Chosen by DBA very important to identify the entity and the record.
Eg.???
Alternate Key/s:
CK-PK=AK ,5-1=4 . All 4 can become PK but not chosen by DBA.
Secondary Key:
Used for data retrieval. Eg.Emp_id(PK) ,Dept(Secondary key)
I want to find the employee wrt to dept then Dept is secondary key.
Many time in a Group by clause we use Secondary key.
Foreign Key: PK of one related to another entity id FK
Composite Key: Combination od two or more columns in a table that
uniquely identify the tuple/record/row.
Eg.CutomerId,OrderID,SalesDetail
Key in Relation
 Let R(A B C D) HOW MANY SUPER KEYS ARE POSSIBLE
PROVIDED CK=A
 Let R(A B C D) HOW MANY SUPER KEYS ARE POSSIBLE
PROVIDED CK1=A,CK2=B
Key in Relation
 Let R(A B C D) HOW MANY SUPER KEYS ARE POSSIBLE
PROVIDED CK1=A,CK2=B,CK3=C
Key in Relation
 Let R(A1.A2,A3,……An) HOW MANY SUPER KEYS ARE
POSSIBLE PROVIDED
 With only CK A1= 2n-1
 With only CK A1,A2= 2n- 2n-1
 With only CK A1A2,A3A4= 2n-2+2n-2- 2n-4
 With only CK A1A2,A2A3=2n-1- 2n-3
Key in Relation
THANK YOU

More Related Content

What's hot

OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTESOBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
suthi
 
Dbms important questions and answers
Dbms important questions and answersDbms important questions and answers
Dbms important questions and answers
LakshmiSarvani6
 
Introduction to Data Science With R Notes
Introduction to Data Science With R NotesIntroduction to Data Science With R Notes
Introduction to Data Science With R Notes
LakshmiSarvani6
 
Sql ppt
Sql pptSql ppt
Software Systems Modularization
Software Systems ModularizationSoftware Systems Modularization
Software Systems Modularizationchiao-fan yang
 
Types of sql commands by naveen kumar veligeti
Types of sql commands by naveen kumar veligetiTypes of sql commands by naveen kumar veligeti
Types of sql commands by naveen kumar veligeti
Naveen Kumar Veligeti
 
9. Object Relational Databases in DBMS
9. Object Relational Databases in DBMS9. Object Relational Databases in DBMS
9. Object Relational Databases in DBMSkoolkampus
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questions
ambika93
 
Database management system chapter12
Database management system chapter12Database management system chapter12
Database management system chapter12Md. Mahedi Mahfuj
 
[OOP - Lec 02] Why do we need OOP
[OOP - Lec 02] Why do we need OOP[OOP - Lec 02] Why do we need OOP
[OOP - Lec 02] Why do we need OOP
Muhammad Hammad Waseem
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database concepts
Temesgenthanks
 
Language design and translation issues
Language design and translation issuesLanguage design and translation issues
Language design and translation issues
SURBHI SAROHA
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
Rc Os
 
Sql commands
Sql commandsSql commands
Sql commands
Prof. Dr. K. Adisesha
 
Module 5 oodb systems semantic db systems
Module 5 oodb systems  semantic db systemsModule 5 oodb systems  semantic db systems
Module 5 oodb systems semantic db systemsTaher Barodawala
 
DBMS Campus crack Question Prepared by Randhir Kumar
DBMS Campus crack Question Prepared by Randhir KumarDBMS Campus crack Question Prepared by Randhir Kumar
DBMS Campus crack Question Prepared by Randhir Kumar
Randhir Chouhan
 
Sql commands
Sql commandsSql commands
Sql commands
Prof. Dr. K. Adisesha
 

What's hot (20)

OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTESOBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
 
Dbms important questions and answers
Dbms important questions and answersDbms important questions and answers
Dbms important questions and answers
 
Introduction to Data Science With R Notes
Introduction to Data Science With R NotesIntroduction to Data Science With R Notes
Introduction to Data Science With R Notes
 
Sql ppt
Sql pptSql ppt
Sql ppt
 
Presentation
PresentationPresentation
Presentation
 
Software Systems Modularization
Software Systems ModularizationSoftware Systems Modularization
Software Systems Modularization
 
Types of sql commands by naveen kumar veligeti
Types of sql commands by naveen kumar veligetiTypes of sql commands by naveen kumar veligeti
Types of sql commands by naveen kumar veligeti
 
9. Object Relational Databases in DBMS
9. Object Relational Databases in DBMS9. Object Relational Databases in DBMS
9. Object Relational Databases in DBMS
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questions
 
Database management system chapter12
Database management system chapter12Database management system chapter12
Database management system chapter12
 
[OOP - Lec 02] Why do we need OOP
[OOP - Lec 02] Why do we need OOP[OOP - Lec 02] Why do we need OOP
[OOP - Lec 02] Why do we need OOP
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database concepts
 
Dbms question (3)
Dbms question (3)Dbms question (3)
Dbms question (3)
 
Language design and translation issues
Language design and translation issuesLanguage design and translation issues
Language design and translation issues
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
 
Unit 08 dbms
Unit 08 dbmsUnit 08 dbms
Unit 08 dbms
 
Sql commands
Sql commandsSql commands
Sql commands
 
Module 5 oodb systems semantic db systems
Module 5 oodb systems  semantic db systemsModule 5 oodb systems  semantic db systems
Module 5 oodb systems semantic db systems
 
DBMS Campus crack Question Prepared by Randhir Kumar
DBMS Campus crack Question Prepared by Randhir KumarDBMS Campus crack Question Prepared by Randhir Kumar
DBMS Campus crack Question Prepared by Randhir Kumar
 
Sql commands
Sql commandsSql commands
Sql commands
 

Similar to Database Management System-session1-2

DBMS.pptx
DBMS.pptxDBMS.pptx
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
DhruveeHalvadiya
 
DBMS PPT.pptx
DBMS PPT.pptxDBMS PPT.pptx
DBMS PPT.pptx
AvinashChaudhary74
 
Chapter 5 data processing
Chapter 5 data processingChapter 5 data processing
Chapter 5 data processingUMaine
 
Introduction to Data Management
Introduction to Data ManagementIntroduction to Data Management
Introduction to Data Management
Cloudbells.com
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
OECLIB Odisha Electronics Control Library
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
SameerKhanPathan7
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
AnmolThakur67
 
Dbms and rdbms ppt
Dbms and rdbms pptDbms and rdbms ppt
Dbms and rdbms ppt
rahul kapoliya
 
Lecture#5
Lecture#5Lecture#5
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
AhmadShah Sultani
 
Database management system
Database management systemDatabase management system
Database management system
RizwanHafeez
 
DBMS Full.ppt
DBMS Full.pptDBMS Full.ppt
DBMS Full.ppt
pritikanamaity600
 
Database and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsDatabase and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health Informatics
Zulfiquer Ahmed Amin
 
System i - DDL vs DDS Presentation
System i - DDL vs DDS PresentationSystem i - DDL vs DDS Presentation
System i - DDL vs DDS PresentationChuck Walker
 
Database Design and Implementation
Database Design and ImplementationDatabase Design and Implementation
Database Design and ImplementationChristian Reina
 
Detailed overview on Database and database system
Detailed overview on Database and database systemDetailed overview on Database and database system
Detailed overview on Database and database system
samreenghauri786
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdf
parveen204931475
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
Siti Ismail
 

Similar to Database Management System-session1-2 (20)

DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
DBMS PPT.pptx
DBMS PPT.pptxDBMS PPT.pptx
DBMS PPT.pptx
 
Chapter 5 data processing
Chapter 5 data processingChapter 5 data processing
Chapter 5 data processing
 
Introduction to Data Management
Introduction to Data ManagementIntroduction to Data Management
Introduction to Data Management
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
Dbms and rdbms ppt
Dbms and rdbms pptDbms and rdbms ppt
Dbms and rdbms ppt
 
Dbms models
Dbms modelsDbms models
Dbms models
 
Lecture#5
Lecture#5Lecture#5
Lecture#5
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
Database management system
Database management systemDatabase management system
Database management system
 
DBMS Full.ppt
DBMS Full.pptDBMS Full.ppt
DBMS Full.ppt
 
Database and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsDatabase and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health Informatics
 
System i - DDL vs DDS Presentation
System i - DDL vs DDS PresentationSystem i - DDL vs DDS Presentation
System i - DDL vs DDS Presentation
 
Database Design and Implementation
Database Design and ImplementationDatabase Design and Implementation
Database Design and Implementation
 
Detailed overview on Database and database system
Detailed overview on Database and database systemDetailed overview on Database and database system
Detailed overview on Database and database system
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdf
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 

More from Infinity Tech Solutions

Database management system session 6
Database management system session 6Database management system session 6
Database management system session 6
Infinity Tech Solutions
 
Database management system session 5
Database management system session 5Database management system session 5
Database management system session 5
Infinity Tech Solutions
 
Database Management System-session 3-4-5
Database Management System-session 3-4-5Database Management System-session 3-4-5
Database Management System-session 3-4-5
Infinity Tech Solutions
 
Main topic 3 problem solving and office automation
Main topic 3 problem solving and office automationMain topic 3 problem solving and office automation
Main topic 3 problem solving and office automation
Infinity Tech Solutions
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
Infinity Tech Solutions
 
E commerce
E commerce E commerce
E commerce
E commerceE commerce
Bds session 13 14
Bds session 13 14Bds session 13 14
Bds session 13 14
Infinity Tech Solutions
 
Computer memory, Types of programming languages
Computer memory, Types of programming languagesComputer memory, Types of programming languages
Computer memory, Types of programming languages
Infinity Tech Solutions
 
Basic hardware familiarization
Basic hardware familiarizationBasic hardware familiarization
Basic hardware familiarization
Infinity Tech Solutions
 
User defined functions in matlab
User defined functions in  matlabUser defined functions in  matlab
User defined functions in matlab
Infinity Tech Solutions
 
Programming with matlab session 6
Programming with matlab session 6Programming with matlab session 6
Programming with matlab session 6
Infinity Tech Solutions
 
Programming with matlab session 3 notes
Programming with matlab session 3 notesProgramming with matlab session 3 notes
Programming with matlab session 3 notes
Infinity Tech Solutions
 
AI/ML/DL/BCT A Revolution in Maritime Sector
AI/ML/DL/BCT A Revolution in Maritime SectorAI/ML/DL/BCT A Revolution in Maritime Sector
AI/ML/DL/BCT A Revolution in Maritime Sector
Infinity Tech Solutions
 
Programming with matlab session 5 looping
Programming with matlab session 5 loopingProgramming with matlab session 5 looping
Programming with matlab session 5 looping
Infinity Tech Solutions
 
MS word
MS word MS word
DBMS CS 4-5
DBMS CS 4-5DBMS CS 4-5
DBMS CS3
DBMS CS3DBMS CS3
DBMS CS2
DBMS CS2DBMS CS2
Programming with matlab session 4
Programming with matlab session 4Programming with matlab session 4
Programming with matlab session 4
Infinity Tech Solutions
 

More from Infinity Tech Solutions (20)

Database management system session 6
Database management system session 6Database management system session 6
Database management system session 6
 
Database management system session 5
Database management system session 5Database management system session 5
Database management system session 5
 
Database Management System-session 3-4-5
Database Management System-session 3-4-5Database Management System-session 3-4-5
Database Management System-session 3-4-5
 
Main topic 3 problem solving and office automation
Main topic 3 problem solving and office automationMain topic 3 problem solving and office automation
Main topic 3 problem solving and office automation
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
E commerce
E commerce E commerce
E commerce
 
E commerce
E commerceE commerce
E commerce
 
Bds session 13 14
Bds session 13 14Bds session 13 14
Bds session 13 14
 
Computer memory, Types of programming languages
Computer memory, Types of programming languagesComputer memory, Types of programming languages
Computer memory, Types of programming languages
 
Basic hardware familiarization
Basic hardware familiarizationBasic hardware familiarization
Basic hardware familiarization
 
User defined functions in matlab
User defined functions in  matlabUser defined functions in  matlab
User defined functions in matlab
 
Programming with matlab session 6
Programming with matlab session 6Programming with matlab session 6
Programming with matlab session 6
 
Programming with matlab session 3 notes
Programming with matlab session 3 notesProgramming with matlab session 3 notes
Programming with matlab session 3 notes
 
AI/ML/DL/BCT A Revolution in Maritime Sector
AI/ML/DL/BCT A Revolution in Maritime SectorAI/ML/DL/BCT A Revolution in Maritime Sector
AI/ML/DL/BCT A Revolution in Maritime Sector
 
Programming with matlab session 5 looping
Programming with matlab session 5 loopingProgramming with matlab session 5 looping
Programming with matlab session 5 looping
 
MS word
MS word MS word
MS word
 
DBMS CS 4-5
DBMS CS 4-5DBMS CS 4-5
DBMS CS 4-5
 
DBMS CS3
DBMS CS3DBMS CS3
DBMS CS3
 
DBMS CS2
DBMS CS2DBMS CS2
DBMS CS2
 
Programming with matlab session 4
Programming with matlab session 4Programming with matlab session 4
Programming with matlab session 4
 

Recently uploaded

Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
veerababupersonal22
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
itech2017
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Steel & Timber Design according to British Standard
Steel & Timber Design according to British StandardSteel & Timber Design according to British Standard
Steel & Timber Design according to British Standard
AkolbilaEmmanuel1
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
manasideore6
 
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdfThe Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
Nettur Technical Training Foundation
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 

Recently uploaded (20)

Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Steel & Timber Design according to British Standard
Steel & Timber Design according to British StandardSteel & Timber Design according to British Standard
Steel & Timber Design according to British Standard
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
 
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdfThe Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 

Database Management System-session1-2

  • 1. DBDA (Database Design and Applications) CH1 By: Prof. Ganesh Ingle
  • 2. Session objective INTRODUCTION FILE SYSTEM VS DBMS/RDBMS THREE SCHEMA ARCHITECURE OF DBMS DATA INDEPENDANCE DBMS ARCHITECTURE
  • 8. Introduction (File system vs DBMS) DBMS Flat File Management System Multi-user access It does not support multi-user access Design to fulfill the need for small and large businesses It is only limited to smaller DBMS system. Remove redundancy and Integrity Redundancy and Integrity issues Expensive. But in the long term Total Cost of Ownership is cheap It's cheaper Easy to implement complicated transactions No support for complicated transactions
  • 9. History of DBMS Here, are the important landmarks from the history: 1960 - Charles Bachman designed first DBMS system 1970 - Codd introduced IBM'S Information Management System (IMS) 1976- Peter Chen coined and defined the Entity-relationship model also know as the ER model 1980 - Relational Model becomes a widely accepted database component 1985- Object-oriented DBMS develops. 1990s- Incorporation of object-orientation in relational DBMS. 1991- Microsoft ships MS access, a personal DBMS and that displaces all other personal DBMS products. 1995: First Internet database applications 1997: XML applied to database processing. Many vendors begin to integrate XML into DBMS products.
  • 10. Characteristics of DBMS •Provides security and removes redundancy •Self-describing nature of a database system •Insulation between programs and data abstraction •Support of multiple views of the data •Sharing of data and multiuser transaction processing •DBMS allows entities and relations among them to form tables. •It follows the ACID concept ( Atomicity, Consistency, Isolation, and Durability). •DBMS supports multi-user environment that allows users to access and manipulate data in parallel.
  • 11. Characteristics of DBMS •Provides security and removes redundancy •Self-describing nature of a database system •Insulation between programs and data abstraction •Support of multiple views of the data Sharing of dPopular DBMS Software Here, is the list of some popular DBMS system:  MySQL  Microsoft Access  Oracle  PostgreSQL  dBASE  FoxPro  SQLite  IBM DB2  LibreOffice Base  MariaDB  Microsoft SQL Server etc.
  • 12. DBMS Advantages DBMS may offer plenty of advantages  DBMS offers a variety of techniques to store & retrieve data  DBMS serves as an efficient handler to balance the needs of multiple applications using the same data  Uniform administration procedures for data  Application programmers never exposed to details of data representation and storage.  A DBMS uses various powerful functions to store and retrieve data efficiently.  Offers Data Integrity and Security  The DBMS implies integrity constraints to get a high level of protection against prohibited access to data.  A DBMS schedules concurrent access to the data in such a manner that only one user can access the same data at a time  Reduced Application Development Time
  • 13. DBMS Disadvantages DBMS may offer plenty of advantages but, it has certain flaws-  Cost of Hardware and Software of a DBMS is quite high which increases the budget of your organization.  Most database management systems are often complex systems, so the training for users to use the DBMS is required.  In some organizations, all data is integrated into a single database which can be damaged because of electric failure or database is corrupted on the storage media  Use of the same program at a time by many users sometimes lead to the loss of some data.  DBMS can't perform sophisticated calculations DBMS may offer plenty of advantages but, it has certain flaws-  Cost of Hardware and Software of a DBMS is quite high which increases the budget of your organization.  Most database management systems are often complex systems, so the training for users to use the DBMS is required.  In some organizations, all data is integrated into a single database which can be damaged because of electric failure or database is corrupted on the storage media  Use of the same program at a time by many users sometimes lead to the loss of some data.  DBMS can't perform sophisticated calculations
  • 14. DBMS Users Component Name Task Application Programmers The Application programmers write programs in various programming languages to interact with databases. Database Administrators Database Admin is responsible for managing the entire DBMS system. He/She is called Database admin or DBA. End-Users The end users are the people who interact with the database management system. They conduct various operations on database like retrieving, updating, deleting, etc.
  • 15. DBMS Three Schema Architecture
  • 16. DBMS Three Schema Architecture
  • 17. DBMS Three Schema Architecture
  • 18. DBMS Three Schema Architecture
  • 19. DBMS Three Schema Architecture
  • 20. DBMS Three Schema Architecture
  • 21. DBMS Three Schema Architecture
  • 25. Session objective Quick look of previous Session EER Concepts and notations Modelling class hierarchies Tutorial 1: EER modelling Relational model concepts Relational data model constraints Mapping ER Constructs to relations
  • 27. Participation constraint How an entity participate in a relationship??? Total: If every entity in E participates in t=atleast one relationship in R Eg. Student elective subjects at least register for a course. Partial: Some entities in E participates in in relationship R Eg. Student and CR relation( not all the students are participated for being CR)
  • 28. ER ASSIGNMENT Draw an ER diagram with following constraint Design a database for film There are no actors in this database that have been in no movies. b. There are some actors who have acted in more than ten movies. c. Some actors have done a lead role in multiple movies. d. A movie can have only a maximum of two lead actors. e. Every director has been an actor in some movie. f. No producer has ever been an actor. g. A producer cannot be an actor in some other movie. h. There are movies with more than a dozen actors. i. Some producers have been a director as well. j. Most movies have one director and one producer. k. Some movies have one director but several producers. l. There are some actors who have done a lead role, directed a movie, and produced some movie. m. No movie has a director who also acted in that movie.
  • 31. EER features 1)Generalization: Abstracting process of viewing sets of objects as a single general class. Bottom up approach. 2) Specialization: Introducing new characteristics to an existing class of objects to create new class .Top down approach. 3)Aggregation :Compiling information on an object ,thereby abstracting higher level object. Sub class Super class Inheritance and types WRT to DBMS
  • 34.  ER diagram to set of Table conversion i.e. converting ER model to relational data model .  In relational data model we represent real model in to collection of relations.  Relation=table  Domain???  Tuple/record/row  Attribute/column/ Relational model concepts
  • 36. Relational data model constraints Knowing all key concepts PRN SName PPNo Lisc-no DOB Fname 201519TW700 DHAYREEKAR SOHAM RAJENDRA J8369854 AQ1254 14/02/199 4 Rajendra dhayrikar 201519TW721 SUTAR VISHAL VIVEK B8369859 AW2568 12/02/199 4 Vivek sutar 201437tp10 1 Karneet singh H9369860 PQR124 5 10/02/199 4 Jaspreet singh 201537tp14 5 Sheetal Anil Bhokare Patil M9369950 ABC143 18/12/198 7 Anil Bhokare Patil
  • 37. Relational data model constraints Key in Relation A key allows to identify a set of attributes to distinguish entities from each other. Key attribute set KAS Key attribute KA Types of key: Superkey: Set of one or more attributes that allows to identify an entity uniquely.(It may contain extra attributes)eg. {Std_Id,Std_Name,Mobile_no,EmailId} Candidate key: It is minimal set of super key which can uniquely identify an entity. eg. {Std_Id} not id and name both. New definition: SK for which no subset is a superkey.
  • 38. Relational data model constraints Key in Relation Note : More than one CK is possible in relation Suppose we have 5 CK Primary key: vvimp Chosen by DBA very important to identify the entity and the record. Eg.??? Alternate Key/s: CK-PK=AK ,5-1=4 . All 4 can become PK but not chosen by DBA. Secondary Key: Used for data retrieval. Eg.Emp_id(PK) ,Dept(Secondary key) I want to find the employee wrt to dept then Dept is secondary key. Many time in a Group by clause we use Secondary key. Foreign Key: PK of one related to another entity id FK Composite Key: Combination od two or more columns in a table that uniquely identify the tuple/record/row. Eg.CutomerId,OrderID,SalesDetail
  • 39. Key in Relation  Let R(A B C D) HOW MANY SUPER KEYS ARE POSSIBLE PROVIDED CK=A
  • 40.  Let R(A B C D) HOW MANY SUPER KEYS ARE POSSIBLE PROVIDED CK1=A,CK2=B Key in Relation
  • 41.  Let R(A B C D) HOW MANY SUPER KEYS ARE POSSIBLE PROVIDED CK1=A,CK2=B,CK3=C Key in Relation
  • 42.  Let R(A1.A2,A3,……An) HOW MANY SUPER KEYS ARE POSSIBLE PROVIDED  With only CK A1= 2n-1  With only CK A1,A2= 2n- 2n-1  With only CK A1A2,A3A4= 2n-2+2n-2- 2n-4  With only CK A1A2,A2A3=2n-1- 2n-3 Key in Relation