SlideShare a Scribd company logo
1 of 21
DBDA
(Database Design and Applications)
CH4-5
By: Prof. Ganesh Ingle
Session objective
Quick look of previous Session
Database Design Process
ER Modeling concepts
EER Concepts and notations
Textbook Reference Book(s) & other resources
T1 Ramez Elmasri & Shamkant B. Navathe, Fundamentals of
Database Systems, Pearson Education, 5th Edition, 2007
Reference Book(s) & other resources
R1 Abraham Silberschatz, Henry F Korth and S Sudarshan,
Database System Concepts, McGraw Hill, 6th Ed., 2013
Text Book
Types of DBMS languages
 Data Definition Language (DDL) allows the DBA or user
to describe and name entities, attributes, and relationships
required for the application plus any associated integrity
and security constraints
 Data Manipulation Language (DML) provides basic data
manipulation operations on data held in the database
 Data Control Language (DCL) defines activities that are
not in the categories of those for the DDL and DML, such
as granting privileges to users, and defining when proposed
changes to a databases should be irrevocably made
Database Languages
Types of DBMS languages
DATA Association(ER Model)
Entity:
• A thing or object in real world that is distinguishable from other
objects
Eg: Employee in an organization
• An entity has set of properties and values for he same set of
properties that many uniquely identify an entity
Eg: Employee (EmpIdNo,Mobile no etc)
• An entity set is a set of entities of the same type that share their
same properties or attributes
Eg. Bank (employee(empid),customer(acc number))
DATA Association(ER Model)
Entity:
• A thing or object in real world that is distinguishable from other
objects
Eg: Employee in an organization
• An entity has set of properties and values for he same set of
properties that many uniquely identify an entity
Eg: Employee (EmpIdNo,Mobile no etc)
• An entity set is a set of entities of the same type that share their
same properties or attributes
Eg. Bank (employee(empid),customer(acc number))
DATA Association(ER Model)
Attributes:
• Descriptive properties possessed by each member of an entity set.
• For each attribute ,there is a set of permitted values called domain
• Student(entity)
• Attributes(std_id,std_nme,std_add,std_class)
DATA Association(ER Model)
Attributes
Simple/Composite Sinlge/Muti valued
Derived
Simple :are not
divided in sub parts
eg: unique-id(123456
canot be divided into
12 and 345)
Composite: can be
divided into subparts
Eg: name (first and
last,middle)
single :single value
Eg: order-id
Multi: multiple
values
Eg: multiple phone
numbers
Derived :derived
from otger related
attributes
Eg: age (from name
and DOB)
Age=current_date-DOB
DATA Association(ER Model)
Strong and weak entity set
Strong entity Weak entity
Has a primary key Does not have sufficient attributes to form
primary key
Primary key Primary key???
Entity=set payment :
Attribute:
1. Payment_Number
2. Payment_Date
3. Payment_Amount
Eg. EMI to pay for number of users
How to form PK from weak entity set
How to from the primary key of a weak
entity set ?
You have to use PK of SE on which weak
entity is dependant plus the WE set
discriminator.
Eg. Same loan pay banking domain table
design and relation to be shown
PK,FK,discriminator
Relationship Sets
Relationship Sets-
• A relationship is an association among entities.
• Relationship set is a set of relationship of the
same type.
Eg.
Customer =c1,c2,c3,…..cn
Loan= L1,L2,L3……Ln respectively
Connectivity / Cardinality/Relationships
• It describes the mapping of associated instances
in the relationships
OR
• It expresses the number of entities to which an
entity can be associated via a relationship set
Mapping cardinalities
One to one One to many Many to one Many to Many
• One to one:Department and head(company,university)
• One to many :Hod(1,2,3) faculty(1,2,3)single hod can represent
many faculty likewise one team leader represent many emp
• Many to one:relation of course to faculty many courses are being
taught by one faculty .
• Many to many : projrct 1 to n emp 1 to n
OR
• It expresses the number of entities to which an entity can be
associated via a relationship set
Mapping(Connectivity / Cardinality/Relationships)
Mapping(Connectivity / Cardinality/Relationships)
Mapping(Connectivity / Cardinality/Relationships)
 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)
Participation constraint
 A key allows to identify a set of attributes to
distinguish entities from each other.
 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}
 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.
Key in Relation
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 of two or more columns in a table that
uniquely identify the tuple/record/row.
Eg.CutomerId,OrderID,SalesDetail
THANK YOU

More Related Content

What's hot

Object Oriented Dbms
Object Oriented DbmsObject Oriented Dbms
Object Oriented Dbmsmaryeem
 
Lecture 07 relational database management system
Lecture 07 relational database management systemLecture 07 relational database management system
Lecture 07 relational database management systememailharmeet
 
Dbms ii mca-ch3-er-model-2013
Dbms ii mca-ch3-er-model-2013Dbms ii mca-ch3-er-model-2013
Dbms ii mca-ch3-er-model-2013Prosanta Ghosh
 
Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Mudasir Qazi
 
Introduction of Database Design and Development
Introduction of Database Design and DevelopmentIntroduction of Database Design and Development
Introduction of Database Design and DevelopmentEr. Nawaraj Bhandari
 
Entity-Relationship Data Model in DBMS
Entity-Relationship Data Model in DBMSEntity-Relationship Data Model in DBMS
Entity-Relationship Data Model in DBMSProf Ansari
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMSkoolkampus
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database modelPAQUIAAIZEL
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship DiagramSiti Ismail
 
Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2eidah20
 
Data modelingpresentation
Data modelingpresentationData modelingpresentation
Data modelingpresentationfikirabc
 
Cardinality and participation constraints
Cardinality and participation constraintsCardinality and participation constraints
Cardinality and participation constraintsNikhil Deswal
 
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
 
Encapsulation of operations, methods & persistence
Encapsulation of operations, methods & persistenceEncapsulation of operations, methods & persistence
Encapsulation of operations, methods & persistencePrem Lamsal
 
Bca examination 2015 dbms
Bca examination 2015 dbmsBca examination 2015 dbms
Bca examination 2015 dbmsAnjaan Gajendra
 
Entity relationship modelling - DE L300
Entity relationship modelling - DE L300Entity relationship modelling - DE L300
Entity relationship modelling - DE L300Edwin Ayernor
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship ModellingBhandari Nawaraj
 

What's hot (20)

Object Oriented Dbms
Object Oriented DbmsObject Oriented Dbms
Object Oriented Dbms
 
Lecture 07 relational database management system
Lecture 07 relational database management systemLecture 07 relational database management system
Lecture 07 relational database management system
 
Object oriented data model
Object oriented data modelObject oriented data model
Object oriented data model
 
Dbms ii mca-ch3-er-model-2013
Dbms ii mca-ch3-er-model-2013Dbms ii mca-ch3-er-model-2013
Dbms ii mca-ch3-er-model-2013
 
Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)
 
Introduction of Database Design and Development
Introduction of Database Design and DevelopmentIntroduction of Database Design and Development
Introduction of Database Design and Development
 
Entity-Relationship Data Model in DBMS
Entity-Relationship Data Model in DBMSEntity-Relationship Data Model in DBMS
Entity-Relationship Data Model in DBMS
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database model
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2
 
Data modelingpresentation
Data modelingpresentationData modelingpresentation
Data modelingpresentation
 
Cardinality and participation constraints
Cardinality and participation constraintsCardinality and participation constraints
Cardinality and participation constraints
 
Chapt 1 odbms
Chapt 1 odbmsChapt 1 odbms
Chapt 1 odbms
 
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
 
Encapsulation of operations, methods & persistence
Encapsulation of operations, methods & persistenceEncapsulation of operations, methods & persistence
Encapsulation of operations, methods & persistence
 
Bca examination 2015 dbms
Bca examination 2015 dbmsBca examination 2015 dbms
Bca examination 2015 dbms
 
Entity relationship modelling - DE L300
Entity relationship modelling - DE L300Entity relationship modelling - DE L300
Entity relationship modelling - DE L300
 
Data modeling
Data modelingData modeling
Data modeling
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
 

Similar to DBMS CS 4-5

3. Chapter Three.pdf
3. Chapter Three.pdf3. Chapter Three.pdf
3. Chapter Three.pdffikadumola
 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfInfotech27
 
Summary data modelling
Summary data modellingSummary data modelling
Summary data modellingNovita Sari
 
Download different material from slide share
Download different material from slide shareDownload different material from slide share
Download different material from slide sharefanta teferi
 
Database 3 Conceptual Modeling And Er
Database 3   Conceptual Modeling And ErDatabase 3   Conceptual Modeling And Er
Database 3 Conceptual Modeling And ErAshwani Kumar Ramani
 
Use analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxUse analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxMwangaPrayGod
 
Entity-Relationship Data Model
Entity-Relationship Data ModelEntity-Relationship Data Model
Entity-Relationship Data ModelBishrul Haq
 
Entity relationship diagram (erd)
Entity relationship  diagram (erd)Entity relationship  diagram (erd)
Entity relationship diagram (erd)Shahariar Alam
 
Jobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptxJobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptxprosofts1
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...Mustafa Kamel Mohammadi
 

Similar to DBMS CS 4-5 (20)

Db lec 02_new
Db lec 02_newDb lec 02_new
Db lec 02_new
 
3. Chapter Three.pdf
3. Chapter Three.pdf3. Chapter Three.pdf
3. Chapter Three.pdf
 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdf
 
Summary data modelling
Summary data modellingSummary data modelling
Summary data modelling
 
Database part3-
Database part3-Database part3-
Database part3-
 
Download different material from slide share
Download different material from slide shareDownload different material from slide share
Download different material from slide share
 
ER diagram
ER diagramER diagram
ER diagram
 
8.pptx
8.pptx8.pptx
8.pptx
 
Unit02 dbms
Unit02 dbmsUnit02 dbms
Unit02 dbms
 
Chap08
Chap08Chap08
Chap08
 
Dbms
DbmsDbms
Dbms
 
Unit 2 DBMS
Unit 2 DBMSUnit 2 DBMS
Unit 2 DBMS
 
Database 3 Conceptual Modeling And Er
Database 3   Conceptual Modeling And ErDatabase 3   Conceptual Modeling And Er
Database 3 Conceptual Modeling And Er
 
Data Models.pptx
Data Models.pptxData Models.pptx
Data Models.pptx
 
Use analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxUse analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptx
 
Entity-Relationship Data Model
Entity-Relationship Data ModelEntity-Relationship Data Model
Entity-Relationship Data Model
 
Entity relationship diagram (erd)
Entity relationship  diagram (erd)Entity relationship  diagram (erd)
Entity relationship diagram (erd)
 
Jobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptxJobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptx
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
 
dbms mannual.pdf
dbms mannual.pdfdbms mannual.pdf
dbms mannual.pdf
 

More from 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-5Infinity 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 automationInfinity Tech Solutions
 
Computer memory, Types of programming languages
Computer memory, Types of programming languagesComputer memory, Types of programming languages
Computer memory, Types of programming languagesInfinity 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 SectorInfinity Tech Solutions
 
Programming with matlab session 5 looping
Programming with matlab session 5 loopingProgramming with matlab session 5 looping
Programming with matlab session 5 loopingInfinity 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
 
Database Management System-session1-2
Database Management System-session1-2Database Management System-session1-2
Database Management System-session1-2
 
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
 
BIG DATA Session 7 8
BIG DATA Session 7 8BIG DATA Session 7 8
BIG DATA Session 7 8
 
BIG DATA Session 6
BIG DATA Session 6BIG DATA Session 6
BIG DATA Session 6
 
MS word
MS word MS word
MS word
 
DBMS CS3
DBMS CS3DBMS CS3
DBMS CS3
 

Recently uploaded

Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 

Recently uploaded (20)

Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 

DBMS CS 4-5

  • 1. DBDA (Database Design and Applications) CH4-5 By: Prof. Ganesh Ingle
  • 2. Session objective Quick look of previous Session Database Design Process ER Modeling concepts EER Concepts and notations
  • 3. Textbook Reference Book(s) & other resources T1 Ramez Elmasri & Shamkant B. Navathe, Fundamentals of Database Systems, Pearson Education, 5th Edition, 2007 Reference Book(s) & other resources R1 Abraham Silberschatz, Henry F Korth and S Sudarshan, Database System Concepts, McGraw Hill, 6th Ed., 2013 Text Book
  • 4. Types of DBMS languages
  • 5.  Data Definition Language (DDL) allows the DBA or user to describe and name entities, attributes, and relationships required for the application plus any associated integrity and security constraints  Data Manipulation Language (DML) provides basic data manipulation operations on data held in the database  Data Control Language (DCL) defines activities that are not in the categories of those for the DDL and DML, such as granting privileges to users, and defining when proposed changes to a databases should be irrevocably made Database Languages
  • 6. Types of DBMS languages
  • 7. DATA Association(ER Model) Entity: • A thing or object in real world that is distinguishable from other objects Eg: Employee in an organization • An entity has set of properties and values for he same set of properties that many uniquely identify an entity Eg: Employee (EmpIdNo,Mobile no etc) • An entity set is a set of entities of the same type that share their same properties or attributes Eg. Bank (employee(empid),customer(acc number))
  • 8. DATA Association(ER Model) Entity: • A thing or object in real world that is distinguishable from other objects Eg: Employee in an organization • An entity has set of properties and values for he same set of properties that many uniquely identify an entity Eg: Employee (EmpIdNo,Mobile no etc) • An entity set is a set of entities of the same type that share their same properties or attributes Eg. Bank (employee(empid),customer(acc number))
  • 9. DATA Association(ER Model) Attributes: • Descriptive properties possessed by each member of an entity set. • For each attribute ,there is a set of permitted values called domain • Student(entity) • Attributes(std_id,std_nme,std_add,std_class)
  • 10. DATA Association(ER Model) Attributes Simple/Composite Sinlge/Muti valued Derived Simple :are not divided in sub parts eg: unique-id(123456 canot be divided into 12 and 345) Composite: can be divided into subparts Eg: name (first and last,middle) single :single value Eg: order-id Multi: multiple values Eg: multiple phone numbers Derived :derived from otger related attributes Eg: age (from name and DOB) Age=current_date-DOB
  • 12. Strong and weak entity set Strong entity Weak entity Has a primary key Does not have sufficient attributes to form primary key Primary key Primary key??? Entity=set payment : Attribute: 1. Payment_Number 2. Payment_Date 3. Payment_Amount Eg. EMI to pay for number of users
  • 13. How to form PK from weak entity set How to from the primary key of a weak entity set ? You have to use PK of SE on which weak entity is dependant plus the WE set discriminator. Eg. Same loan pay banking domain table design and relation to be shown PK,FK,discriminator
  • 14. Relationship Sets Relationship Sets- • A relationship is an association among entities. • Relationship set is a set of relationship of the same type. Eg. Customer =c1,c2,c3,…..cn Loan= L1,L2,L3……Ln respectively Connectivity / Cardinality/Relationships • It describes the mapping of associated instances in the relationships OR • It expresses the number of entities to which an entity can be associated via a relationship set
  • 15. Mapping cardinalities One to one One to many Many to one Many to Many • One to one:Department and head(company,university) • One to many :Hod(1,2,3) faculty(1,2,3)single hod can represent many faculty likewise one team leader represent many emp • Many to one:relation of course to faculty many courses are being taught by one faculty . • Many to many : projrct 1 to n emp 1 to n OR • It expresses the number of entities to which an entity can be associated via a relationship set Mapping(Connectivity / Cardinality/Relationships)
  • 18.  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) Participation constraint
  • 19.  A key allows to identify a set of attributes to distinguish entities from each other.  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}  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. Key in Relation
  • 20. 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 of two or more columns in a table that uniquely identify the tuple/record/row. Eg.CutomerId,OrderID,SalesDetail