SlideShare a Scribd company logo
1 of 18
REPRESENTATION OF
ENTITY RELATIONSHIP
DIAGRAM
PRESENTED BY :
GITIKA
BCA 2(M)
ENTITY RELATIONSHIP DIAGRAM
DEFINATION:
ER DIAGRAM IS A VISUALL REPRESENTATION OF DATA THAT
DESCRIBES HOW THE DATA IS RELATED WITH EACH OTHER.
2
SYMBOLS AND NOTATION IN ER DIGRAM
3
ENTITY
Entities are represented by means of rectangles. Rectangles are named with the
entity set they represent.
4
WEAK ENTITY
WEAK ENTITY IS AN ENTITY THAT DEPENDS ON ANOTHER ENTITY. WEAK ENTITY
DOESN’T HAVE KEY ATTRIBUTES OF THEIR OWN.DOUBLE RECTANGLE REPRESENTS
WEAK ENTITY.
5
ATTRIBUTES
Attributes are properties of entities. Attributes are represented by means of
ellipses. Every eclipse represents one attribute and is directly connected to its
entity (rectangle).
6
KEY ATTRIBUTE
KEY ATTRIBUTES REPRESENTS THE MAIN CHARACTERSTIC OF AN ENTITY.
IT IS USED TO REPRESENT PRIMARY KEY ELLIPSE WITH UNDERLYING LINES REPRESENT
KEY ATTRIBUTE.
7
COMPOSITE ATTRIBUTES
If the attributes are composite, they are further divided in a tree like structure. Every node is
then connected to its attribute. That is composite attributes are represented by ellipse that
are connected with an ellipse.
8
MULTIVALUED ATTRIBUTES
Multivalued attributes are depicted by double eclipse
9
DERIVED ATTRIBUTES
Derived attributes are depicted by dashed eclipse.
10
RELATIONSHIP
Relationships are represented by diamond shaped box. Name of the relationship is
written in the diamond-box. All entities (rectangles), participating in relationship,
are connected to it by a line.
11
ONE TO ONE
When only one instance of entity is associated with the relationship, it is marked as '1'. This image
below reflects that only 1 instance of each entity should be associated with the relationship. It depicts
one-to-one relationship
12
ONE TO MANY
 When more than one instance of entity is associated with the relationship, it is marked as 'N'. This image
below reflects that only 1 instance of entity on the left and more than one instance of entity on the right
can be associated with the relationship. It depicts one-to-many relationship.
13
MANY TO ONE
 When more than one instance of entity is associated with the relationship, it is marked as 'N'. This image below
reflects that more than one instance of entity on the left and only one instance of entity on the right can be
associated with the relationship. It depicts many-to-one relationship.
14
MANY TO MANY
 This image below reflects that more than one instance of entity on the left and more than one
instance of entity on the right can be associated with the relationship. It depicts many-to-many
relationship.
15
EXAMPLE OF AN ER DIGRAM
16
17
18

More Related Content

More from gitika - (6)

Programming tools
Programming toolsProgramming tools
Programming tools
 
management
management management
management
 
Women empowerment
Women empowermentWomen empowerment
Women empowerment
 
Online furniture
Online furnitureOnline furniture
Online furniture
 
Gitika html ppt
Gitika html pptGitika html ppt
Gitika html ppt
 
Introduction to queue
Introduction to queueIntroduction to queue
Introduction to queue
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
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 ...
 
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
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 

Representation of Entity relationship diagram in data base managemnet system

  • 2. ENTITY RELATIONSHIP DIAGRAM DEFINATION: ER DIAGRAM IS A VISUALL REPRESENTATION OF DATA THAT DESCRIBES HOW THE DATA IS RELATED WITH EACH OTHER. 2
  • 3. SYMBOLS AND NOTATION IN ER DIGRAM 3
  • 4. ENTITY Entities are represented by means of rectangles. Rectangles are named with the entity set they represent. 4
  • 5. WEAK ENTITY WEAK ENTITY IS AN ENTITY THAT DEPENDS ON ANOTHER ENTITY. WEAK ENTITY DOESN’T HAVE KEY ATTRIBUTES OF THEIR OWN.DOUBLE RECTANGLE REPRESENTS WEAK ENTITY. 5
  • 6. ATTRIBUTES Attributes are properties of entities. Attributes are represented by means of ellipses. Every eclipse represents one attribute and is directly connected to its entity (rectangle). 6
  • 7. KEY ATTRIBUTE KEY ATTRIBUTES REPRESENTS THE MAIN CHARACTERSTIC OF AN ENTITY. IT IS USED TO REPRESENT PRIMARY KEY ELLIPSE WITH UNDERLYING LINES REPRESENT KEY ATTRIBUTE. 7
  • 8. COMPOSITE ATTRIBUTES If the attributes are composite, they are further divided in a tree like structure. Every node is then connected to its attribute. That is composite attributes are represented by ellipse that are connected with an ellipse. 8
  • 9. MULTIVALUED ATTRIBUTES Multivalued attributes are depicted by double eclipse 9
  • 10. DERIVED ATTRIBUTES Derived attributes are depicted by dashed eclipse. 10
  • 11. RELATIONSHIP Relationships are represented by diamond shaped box. Name of the relationship is written in the diamond-box. All entities (rectangles), participating in relationship, are connected to it by a line. 11
  • 12. ONE TO ONE When only one instance of entity is associated with the relationship, it is marked as '1'. This image below reflects that only 1 instance of each entity should be associated with the relationship. It depicts one-to-one relationship 12
  • 13. ONE TO MANY  When more than one instance of entity is associated with the relationship, it is marked as 'N'. This image below reflects that only 1 instance of entity on the left and more than one instance of entity on the right can be associated with the relationship. It depicts one-to-many relationship. 13
  • 14. MANY TO ONE  When more than one instance of entity is associated with the relationship, it is marked as 'N'. This image below reflects that more than one instance of entity on the left and only one instance of entity on the right can be associated with the relationship. It depicts many-to-one relationship. 14
  • 15. MANY TO MANY  This image below reflects that more than one instance of entity on the left and more than one instance of entity on the right can be associated with the relationship. It depicts many-to-many relationship. 15
  • 16. EXAMPLE OF AN ER DIGRAM 16
  • 17. 17
  • 18. 18