SlideShare a Scribd company logo
1 of 7
Tutorial on E-R Diagrams
1.

Learn basic terminology and symbols
–

1.

Learn the basics of E-R diagramming using Rational software
–
–

1.

See next four slides; refer to as needed in steps 2-4 below

–

Start – Programs – Local Applications – IBM Software Development
Platform – IBM Rational Software Architect – IBM Rational Software
Architect
Follow through the notes in the Word document
(Rational_Software_Architect_Data_Modeling.doc)

Learn the basics of E-R diagramming in Visio
See http://www.sba.uwm.edu/Nazareth_D/Tools/Visio/homeTemplate.html

–

Or sbacrseMIS 380Fall 2007Hoffer - Additional Templates.htm

–

Try drawing the diagram in 4 below.

1.

Draw a diagram
–

Draw the diagram on the last slide using both tools
Terminology and Symbols:
Entities, Attributes, Relationship
Attributes
(Columns)

Invoice_Num
Invoice_Date

Vendor_ID

INVOICE

Paid?

Primary Key
(attribute(s) that
form(s) a unique
identifier for an
instance of an
entity) is
underlined.

Includes

Relationship
Is_included_on
Qty_Added

INVOICE
ITEM

Entities
(Tables)
Terminology and Symbols:
Cardinality (and Role in Rational)
Hint: Make the entity with the cardinality = 1
the parent, i.e., start drawing the relationship
from that entity. In this example Invoice is the
parent, Invoice Item is the child.
Description of relationship
from parent perspective
(Parent Role – verb phrase)

INVOICE

Cardinality = 1

Includes

Cardinality of relationship

Cardinality = 1..n
Is_included_on

Hint: Role descriptions can be
entered in “verb phrase” or
“inverse verb phrase” in the
Properties window in Rational.

INVOICE
ITEM

Description of relationship
from child perspective
(Child Role – verb phrase)
Identifying Relationship
• An identifying or mandatory relationship defines an
association between tables (i.e., entities). The identifying
relationship establishes the mandatory link between a
child table and a parent table. An instance of the child
table cannot exist without an instance of the parent table.
• An example of a parent and child table mandatory
relationship is when your database maintains a table
with data containing information about customer orders
in one table called, Orders, and holds order line-item
information in another table called, Order_Details. An
instance of the child Order_Details cannot exist without
an instance of the parent Orders.
Non-Identifying Relationship
•

A non-identifying relationship specifies an association between two
tables (i.e., entities). An instance of each table has its own identity.
One type of non-identifying relationship is an optional relationship.
Another is mandatory.
• Use an optional non-identifying relationship when a parent instance
is not required. Employees may be assigned to work on projects,
and projects may have employees assigned to work on them, but
such assignments are optional. “Employee” and “Project” have a
non-identifying relationship.
• Use a mandatory non-identifying relationship when a parent
instance is required. If an employee must be assigned to a
department, and a department must have at least one employee
assigned to it, “Employee” and “Department” have a mandatory nonidentifying relationship.
Draw This Diagram with Both Tools
Note: With the Hoffer
template and stencil
in Visio, use the
diamond symbol to
show a relationship
between entities.
Put the name of the
relationship in that
symbol. (The inverse
name may be
omitted.)
Invoice

Includes

Invoice
Item

Note: This diagram
will have a different
appearance in
Rational. Entities
will appear as
“tables” with the
attributes being
“columns” within
the “table.”
Examples of
cardinality are 1 for
mandatory and 0..*
for optional many.
Draw This Diagram with Both Tools
Note: With the Hoffer
template and stencil
in Visio, use the
diamond symbol to
show a relationship
between entities.
Put the name of the
relationship in that
symbol. (The inverse
name may be
omitted.)
Invoice

Includes

Invoice
Item

Note: This diagram
will have a different
appearance in
Rational. Entities
will appear as
“tables” with the
attributes being
“columns” within
the “table.”
Examples of
cardinality are 1 for
mandatory and 0..*
for optional many.

More Related Content

What's hot

Enhanced E-R diagram
Enhanced E-R diagramEnhanced E-R diagram
Enhanced E-R diagram
Mayank Jain
 

What's hot (8)

Illustrator fonts
Illustrator fontsIllustrator fonts
Illustrator fonts
 
Uml profe
Uml profeUml profe
Uml profe
 
Sitecore Knowledge Transfer 2018 (Template) day-2
Sitecore  Knowledge Transfer 2018 (Template) day-2Sitecore  Knowledge Transfer 2018 (Template) day-2
Sitecore Knowledge Transfer 2018 (Template) day-2
 
Usecase Presentation
Usecase PresentationUsecase Presentation
Usecase Presentation
 
Enhanced E-R diagram
Enhanced E-R diagramEnhanced E-R diagram
Enhanced E-R diagram
 
Introduction to the Unified Modeling Language (UML)
Introduction to the Unified Modeling Language (UML)Introduction to the Unified Modeling Language (UML)
Introduction to the Unified Modeling Language (UML)
 
Activity Diagram Templates by Creately
Activity Diagram Templates by CreatelyActivity Diagram Templates by Creately
Activity Diagram Templates by Creately
 
Activity Diagram tutorial part 3
Activity Diagram tutorial part 3Activity Diagram tutorial part 3
Activity Diagram tutorial part 3
 

Similar to ER

Module 4_PART1.pptx
Module 4_PART1.pptxModule 4_PART1.pptx
Module 4_PART1.pptx
Haso12
 
a. Create the ERD without associative entities 1. Using the Busi.docx
a. Create the ERD without associative entities 1. Using the Busi.docxa. Create the ERD without associative entities 1. Using the Busi.docx
a. Create the ERD without associative entities 1. Using the Busi.docx
stelzriedemarla
 
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docxPhase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
randymartin91030
 
2.business object repository
2.business object repository2.business object repository
2.business object repository
Ajay Kumar ☁
 

Similar to ER (20)

ER to Relational Mapping
ER to Relational MappingER to Relational Mapping
ER to Relational Mapping
 
E R model
E R modelE R model
E R model
 
ER diagram slides for datanase stujdy-1.pdf
ER diagram slides for datanase stujdy-1.pdfER diagram slides for datanase stujdy-1.pdf
ER diagram slides for datanase stujdy-1.pdf
 
Module 4_PART1.pptx
Module 4_PART1.pptxModule 4_PART1.pptx
Module 4_PART1.pptx
 
a. Create the ERD without associative entities 1. Using the Busi.docx
a. Create the ERD without associative entities 1. Using the Busi.docxa. Create the ERD without associative entities 1. Using the Busi.docx
a. Create the ERD without associative entities 1. Using the Busi.docx
 
Component Diagram Example Templates
Component Diagram Example TemplatesComponent Diagram Example Templates
Component Diagram Example Templates
 
F018113743
F018113743F018113743
F018113743
 
ER modeling
ER modelingER modeling
ER modeling
 
Computer sec2-1st term
Computer sec2-1st termComputer sec2-1st term
Computer sec2-1st term
 
DBMS Class 3
DBMS Class 3DBMS Class 3
DBMS Class 3
 
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docxPhase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
 
lect2-model.ppt
lect2-model.pptlect2-model.ppt
lect2-model.ppt
 
Design UML diagrams
Design UML diagramsDesign UML diagrams
Design UML diagrams
 
Design UML diagrams
Design UML diagramsDesign UML diagrams
Design UML diagrams
 
database1
database1database1
database1
 
DBMS - ER Model
DBMS - ER ModelDBMS - ER Model
DBMS - ER Model
 
George McGeachie's Favourite PowerDesigner features
George McGeachie's Favourite PowerDesigner featuresGeorge McGeachie's Favourite PowerDesigner features
George McGeachie's Favourite PowerDesigner features
 
Strayer cis 515 week 2 assignment 2 database systems and database models
Strayer cis 515 week 2 assignment 2 database systems and database modelsStrayer cis 515 week 2 assignment 2 database systems and database models
Strayer cis 515 week 2 assignment 2 database systems and database models
 
2.business object repository
2.business object repository2.business object repository
2.business object repository
 
Strayer cis-515-week-2-assignment-2-database-systems-and-database-models
Strayer cis-515-week-2-assignment-2-database-systems-and-database-modelsStrayer cis-515-week-2-assignment-2-database-systems-and-database-models
Strayer cis-515-week-2-assignment-2-database-systems-and-database-models
 

Recently uploaded

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
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
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 

ER

  • 1. Tutorial on E-R Diagrams 1. Learn basic terminology and symbols – 1. Learn the basics of E-R diagramming using Rational software – – 1. See next four slides; refer to as needed in steps 2-4 below – Start – Programs – Local Applications – IBM Software Development Platform – IBM Rational Software Architect – IBM Rational Software Architect Follow through the notes in the Word document (Rational_Software_Architect_Data_Modeling.doc) Learn the basics of E-R diagramming in Visio See http://www.sba.uwm.edu/Nazareth_D/Tools/Visio/homeTemplate.html – Or sbacrseMIS 380Fall 2007Hoffer - Additional Templates.htm – Try drawing the diagram in 4 below. 1. Draw a diagram – Draw the diagram on the last slide using both tools
  • 2. Terminology and Symbols: Entities, Attributes, Relationship Attributes (Columns) Invoice_Num Invoice_Date Vendor_ID INVOICE Paid? Primary Key (attribute(s) that form(s) a unique identifier for an instance of an entity) is underlined. Includes Relationship Is_included_on Qty_Added INVOICE ITEM Entities (Tables)
  • 3. Terminology and Symbols: Cardinality (and Role in Rational) Hint: Make the entity with the cardinality = 1 the parent, i.e., start drawing the relationship from that entity. In this example Invoice is the parent, Invoice Item is the child. Description of relationship from parent perspective (Parent Role – verb phrase) INVOICE Cardinality = 1 Includes Cardinality of relationship Cardinality = 1..n Is_included_on Hint: Role descriptions can be entered in “verb phrase” or “inverse verb phrase” in the Properties window in Rational. INVOICE ITEM Description of relationship from child perspective (Child Role – verb phrase)
  • 4. Identifying Relationship • An identifying or mandatory relationship defines an association between tables (i.e., entities). The identifying relationship establishes the mandatory link between a child table and a parent table. An instance of the child table cannot exist without an instance of the parent table. • An example of a parent and child table mandatory relationship is when your database maintains a table with data containing information about customer orders in one table called, Orders, and holds order line-item information in another table called, Order_Details. An instance of the child Order_Details cannot exist without an instance of the parent Orders.
  • 5. Non-Identifying Relationship • A non-identifying relationship specifies an association between two tables (i.e., entities). An instance of each table has its own identity. One type of non-identifying relationship is an optional relationship. Another is mandatory. • Use an optional non-identifying relationship when a parent instance is not required. Employees may be assigned to work on projects, and projects may have employees assigned to work on them, but such assignments are optional. “Employee” and “Project” have a non-identifying relationship. • Use a mandatory non-identifying relationship when a parent instance is required. If an employee must be assigned to a department, and a department must have at least one employee assigned to it, “Employee” and “Department” have a mandatory nonidentifying relationship.
  • 6. Draw This Diagram with Both Tools Note: With the Hoffer template and stencil in Visio, use the diamond symbol to show a relationship between entities. Put the name of the relationship in that symbol. (The inverse name may be omitted.) Invoice Includes Invoice Item Note: This diagram will have a different appearance in Rational. Entities will appear as “tables” with the attributes being “columns” within the “table.” Examples of cardinality are 1 for mandatory and 0..* for optional many.
  • 7. Draw This Diagram with Both Tools Note: With the Hoffer template and stencil in Visio, use the diamond symbol to show a relationship between entities. Put the name of the relationship in that symbol. (The inverse name may be omitted.) Invoice Includes Invoice Item Note: This diagram will have a different appearance in Rational. Entities will appear as “tables” with the attributes being “columns” within the “table.” Examples of cardinality are 1 for mandatory and 0..* for optional many.