SlideShare a Scribd company logo
1 of 40
Database
Management
System
Relationships
Relationships
Relationships are the connections
and interactions between the
entities instances, e.g., Program
and Student ETs are linked
How to identify relationships
Naming Relationships
Up to you
If there is no proper name of
the association in the system
then participants’ names of
abbreviations are used
Naming
STUDENT and CLASS have
ENROLL relationship
However, it can also be
named as STD_CLS
Symbol for Relationships
DEPT EMP
BOOK
STD
Relationships
Relationship type can be
identified like an entity type
A relationship type is an
abstraction of a relationship
Relationships
Entities involved in a relationship
are called its participants
Types of the relationships can be
established on the basis of
participant ETs
Relationships Types
A Binary relationship is the one
that links two entity types e.g.
STUDENT-CLASS
Binary Relationship Example
STD COURSE
BOOK
STD
EMP
PROJ
Binary Relationships
May also have instances, that can
be formally described in an
ordered pair form
 {(S1001, OS), (S1020, DS),
(S1002, DS), (S1058, NW)}
Attributes of the Rships
The key
The relationships can have
their descriptive attributes
Where to place
Attributes of Rships
STD COURSE
GRAD
E
Ternary Relationships
One that involves three entity
types
STUDENT-CLASS-FACULTY
Ternary Relationship
Examples
STD COURSE
FACULTY
PROJ EMP
SKILL
Ternary Relationships
Instances in ordered triples
Example {(S1013, MCS4,
Adnan), (S1023, MCS3,
Fasih)}
Unary Relationship
An ET linked with itself, also
called recursive relationship
Example Roommate, where
STUDENT is linked with
STUDENT
Unary Relationship Examples
STD ROOMMAT
E
EMP CHAIR-
PERSON
EMP SPOUSE
Cardinality of Rships
Number of instances of one
entity type that can possibly be
related to instances of other
entity type
Types of Cardinalities
One to one
One to many
Many to one
Many to many
Types of Cardinalities
DEPT
Chair
Person
One to one
EMP
DEPT
One to many/ many to one
PROJ
EMP
PROJ
EMP
Many to many
Minimum Cardinality
Determines whether the link is compulsory or
optional
Important, since it effects the implementation
Minimum
cardinality
Maximum
cardinality
Cardinality Example
HOBBY
STD
BOOK
STD
COURSE
STD
PROJ
EMP
Single vertical line will show one and three line will show many and zero
will show optional i.e. it is not necessary student will issue the book.
Other Notations
BOOK
STD
HOBBY
STD
EMP
PROJ
Other Notations
BOOK
STD 1 M
HOBBY
STD 1
M
EMP
PROJ M
M
Other Notations
BOOK
STD 1
EMP
PROJ
CHAIR
DEPT 1
1
Roles in Relationships
Determine the role ETs play in
a relationship
Most of the time is clear from
the context, like in STD and
COURSE relationship
Roles in Relationships
Two situation when they
should be expressed explicitly
A one to one relationship
Two ETs having more than
one relationship
Roles Examples
COURSE
STD ENROLS ENROLLED
BY
ENROLMENT
FACUL-
TY
HEAD
HEADS
HEADED BY
Roles Examples
FACULTY
STD
STD_TEACH
STD_SUP
Dependencies
A type of constraint
Existence dependency
Identifier dependency
Referential Dependency
Existence Dependency
BOOK
COPY
BOOK
bkId
bkTitle
bkId
CopyId
Enhancements in E-R Data Model
EE-R Data Model
Different proposals
Most common feature is
representation of supertypes and
subtypes
A popular feature of Object
Oriented paradigm
Super/Subtypes
Also called generalization/
specialization
Supertype is called a General
Entity type whereas subtypes
are the specializations
Super/Subtypes
PERSON
STD FAC
ST
ST1 ST3
ST2
General Entity Types
Specialized Entity Types
Super/Subtypes
EMP
SALARIED HOURLY
Grade
AnalSal
NoOfHrs
HourlyRate
Super/Subtypes
PERSON
STD FAC
StId
CGPA
Qual
Grade
ClsName
Name
Id
Address

More Related Content

Similar to Week 5 Lecture 09-10 Extended Entity Relationship Diagram, Practice Session of ER Data Model, E-R Diagram.ppt

ECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptxECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptx
miftah88
 
erdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdferdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdf
vinayakjadhav94
 

Similar to Week 5 Lecture 09-10 Extended Entity Relationship Diagram, Practice Session of ER Data Model, E-R Diagram.ppt (20)

ECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptxECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptx
 
DBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxDBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptx
 
Design issues with constraints of E-R model
Design issues with constraints of E-R modelDesign issues with constraints of E-R model
Design issues with constraints of E-R model
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Er Modeling
Er ModelingEr Modeling
Er Modeling
 
ch3 final.pptx
ch3 final.pptxch3 final.pptx
ch3 final.pptx
 
Desigining of Database - ER Model
Desigining of Database - ER ModelDesigining of Database - ER Model
Desigining of Database - ER Model
 
ERD - Entity Relationship Diagram
ERD - Entity Relationship DiagramERD - Entity Relationship Diagram
ERD - Entity Relationship Diagram
 
03 Ch3 Notes Revised
03 Ch3 Notes Revised03 Ch3 Notes Revised
03 Ch3 Notes Revised
 
3. Chapter Three.pdf
3. Chapter Three.pdf3. Chapter Three.pdf
3. Chapter Three.pdf
 
ERD.pptx
ERD.pptxERD.pptx
ERD.pptx
 
Db lec 02_new
Db lec 02_newDb lec 02_new
Db lec 02_new
 
erdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdferdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdf
 
ermodelppt-181229121745.pptx
ermodelppt-181229121745.pptxermodelppt-181229121745.pptx
ermodelppt-181229121745.pptx
 
Er model ppt
Er model pptEr model ppt
Er model ppt
 
E_R-Diagram (2).pptx
E_R-Diagram (2).pptxE_R-Diagram (2).pptx
E_R-Diagram (2).pptx
 
Er diagrams presentation
Er diagrams presentationEr diagrams presentation
Er diagrams presentation
 
Er diagrams presentation
Er diagrams presentationEr diagrams presentation
Er diagrams presentation
 
Data base lec3 (erd)
Data base lec3 (erd)Data base lec3 (erd)
Data base lec3 (erd)
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 

Recently uploaded

一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
pyhepag
 
一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理
cyebo
 
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
pyhepag
 
一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理
cyebo
 
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotecAbortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理
pyhepag
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Valters Lauzums
 
Exploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptxExploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptx
DilipVasan
 
Fuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertaintyFuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertainty
RafigAliyev2
 

Recently uploaded (20)

一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
 
一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理
 
2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting
 
AI Imagen for data-storytelling Infographics.pdf
AI Imagen for data-storytelling Infographics.pdfAI Imagen for data-storytelling Infographics.pdf
AI Imagen for data-storytelling Infographics.pdf
 
Artificial_General_Intelligence__storm_gen_article.pdf
Artificial_General_Intelligence__storm_gen_article.pdfArtificial_General_Intelligence__storm_gen_article.pdf
Artificial_General_Intelligence__storm_gen_article.pdf
 
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
 
Webinar One View, Multiple Systems No-Code Integration of Salesforce and ERPs
Webinar One View, Multiple Systems No-Code Integration of Salesforce and ERPsWebinar One View, Multiple Systems No-Code Integration of Salesforce and ERPs
Webinar One View, Multiple Systems No-Code Integration of Salesforce and ERPs
 
一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理
 
Atlantic Grupa Case Study (Mintec Data AI)
Atlantic Grupa Case Study (Mintec Data AI)Atlantic Grupa Case Study (Mintec Data AI)
Atlantic Grupa Case Study (Mintec Data AI)
 
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotecAbortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
 
How I opened a fake bank account and didn't go to prison
How I opened a fake bank account and didn't go to prisonHow I opened a fake bank account and didn't go to prison
How I opened a fake bank account and didn't go to prison
 
Machine Learning for Accident Severity Prediction
Machine Learning for Accident Severity PredictionMachine Learning for Accident Severity Prediction
Machine Learning for Accident Severity Prediction
 
社内勉強会資料  Mamba - A new era or ephemeral
社内勉強会資料   Mamba - A new era or ephemeral社内勉強会資料   Mamba - A new era or ephemeral
社内勉強会資料  Mamba - A new era or ephemeral
 
2024 Q1 Tableau User Group Leader Quarterly Call
2024 Q1 Tableau User Group Leader Quarterly Call2024 Q1 Tableau User Group Leader Quarterly Call
2024 Q1 Tableau User Group Leader Quarterly Call
 
一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理
 
Slip-and-fall Injuries: Top Workers' Comp Claims
Slip-and-fall Injuries: Top Workers' Comp ClaimsSlip-and-fall Injuries: Top Workers' Comp Claims
Slip-and-fall Injuries: Top Workers' Comp Claims
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
 
Exploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptxExploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptx
 
Fuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertaintyFuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertainty
 
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflictSupply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
 

Week 5 Lecture 09-10 Extended Entity Relationship Diagram, Practice Session of ER Data Model, E-R Diagram.ppt