SlideShare a Scribd company logo
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

Uml profe
Uml profeUml profe
Uml profe
Can BAKIR
 
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
Manish Puri
 
Enhanced E-R diagram
Enhanced E-R diagramEnhanced E-R diagram
Enhanced E-R diagramMayank Jain
 
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)
Marwa Ali Eissa
 
Activity Diagram Templates by Creately
Activity Diagram Templates by CreatelyActivity Diagram Templates by Creately
Activity Diagram Templates by Creately
Creately
 
Activity Diagram tutorial part 3
Activity Diagram tutorial part 3Activity Diagram tutorial part 3
Activity Diagram tutorial part 3
Declan Chellar
 

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

ER to Relational Mapping
ER to Relational MappingER to Relational Mapping
E R model
E R modelE 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
SadiaSharmin40
 
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
 
Component Diagram Example Templates
Component Diagram Example TemplatesComponent Diagram Example Templates
Component Diagram Example Templates
Creately
 
F018113743
F018113743F018113743
F018113743
IOSR Journals
 
ER modeling
ER modelingER modeling
ER modeling
Dabbal Singh Mahara
 
Computer sec2-1st term
Computer sec2-1st termComputer sec2-1st term
Computer sec2-1st term
أمنية وجدى
 
DBMS Class 3
DBMS Class 3DBMS 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
randymartin91030
 
lect2-model.ppt
lect2-model.pptlect2-model.ppt
lect2-model.ppt
vinayakjadhav94
 
database1
database1database1
database1
Monika Sharma
 
DBMS - ER Model
DBMS - ER ModelDBMS - ER Model
DBMS - ER Model
MythiliMurugan3
 
George McGeachie's Favourite PowerDesigner features
George McGeachie's Favourite PowerDesigner featuresGeorge McGeachie's Favourite PowerDesigner features
George McGeachie's Favourite PowerDesigner features
George McGeachie
 
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
eyavagal
 
2.business object repository
2.business object repository2.business object repository
2.business object repositoryAjay Kumar ☁
 
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
kxipvscsk02
 

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

What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
christianmathematics
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Ashish Kohli
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
NelTorrente
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
kitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptxkitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptx
datarid22
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
AG2 Design
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptxFresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
SriSurya50
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 

Recently uploaded (20)

What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
kitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptxkitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptxFresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 

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.