SlideShare a Scribd company logo
Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3



                         Systems Analysis and Design
                          Learning Module Series #5
                                        Document version
    Creating an Elementary Entity Relationship Diagram
Overview
In this tutorial we will create an Entity Relationship Diagram (ERD) that contains two entities and
we will customize these entities into a One-to-Many relationship.

       We will:

           •   Initialize a new diagram
           •   Create an Entity Relationship Diagram (ERD) that contains two entities
           •   Customize the fields/columns of these entities and assign primary keys
           •   Adjust the diagram symbols (such as the crows foot symbol)
           •   Link the entities together, and
           •   Decipher the symbols, the semantics of the created ERD


Initializing a new diagram in MS Visio 2007 
                                                                                                        
1. From the Menu Bar, click File… New… Software and Database… Database Model Diagram (US
   units) from the cascading drop down menus.




                                                        1
Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3


Creating two related entities 
                                                                                                          
From the Shapes pane, drag the Entity shape over to the workspace grid.

2. Under Database Properties, click Definition and type: Course in the “Physical name” text box field.




Customize fields and assign Primary Keys

3. Under Database Properties, under Categories, click on Columns and under the “Physical Name column”,
   enter the following attributes: course_ID, course_title, credits, and grading_method.




                                                      2
Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3


4. Locate the row for attribute course_ID and check the box under “PK” to designate this attribute as the
   Primary key. (Notice how the entity Course places the “PK course_ID” above the line.)




5. Repeat steps 3 through 5 for the second entity: Course_Sections. Its column names should be:
   section_ID, course_ID, location, employee_ID, and day_of_week.

   Additionally, section_ID should be designated as the Primary Key.




                                                     3
Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3


Adjusting the diagram symbols 
                                                                                                                       
     Before we create a relationship between these 2 tables, we will need to set the display format options for the
     connector symbols.

6. From the Menu Bar, click on Database and select Options… Document from the cascading drop down
   menu.




7.     The Database Document Options dialog box displays. Under the Relationship tab, check both the
       Relationships and Crow’s feet check boxes. Click OK.




                                                          4
Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3


Creating the relationship 
                                                                                                               
8. From the Shapes pane, drag the Relationship shape and drop it on top of the Course entity. The Course
   entity will appear in Visio with a red box as shown below.




9. The reason we dropped the Relationship shape onto the Course entity, is because the Course entity is the
   Parent entity in the relationship. Since courses and sections share a One-to-Many relationship, we can
   view their relationship as Parent-Child. A course (parent) can have many sections (child-ren) associated
   with it, but a section can only exist if there is a course to which it is associated.




Linking the entities together
                                                                                                               
10. Drag the unattached end of the relationship shape (green box end) over to the Course_Section entity.



                                                     5
Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3




11. After the relationship shape is dropped it will display the red end-boxes (indicated by the blue arrow
    below. Click anywhere on the grid to have it appear as shown by the red arrow.




Deciphering the Symbols 
                                                                                                                   
      Notice the symbols at each end of the relationship join. There are four symbols on a dotted line.
      The One-to-Many relationship between Course and Course_Section is represented by a “1” designated
      to the end of the dotted line that connects to the Course (Parent) entity – see item 1 below; and a
      “crows foot” symbol designated to the end of the dotted line that connects to the Course_Section
      (Child) entity – see item 4 below. These two symbols reflect the maximum cardinality of the
      relationship. The “O” symbol shown below in items 2 and 3, are the defaults that Visio supplies. These
      reflect the minimum cardinality of the relationship, the “O” representing an Optional relationship.

      Since we know that a course may or not have a section associated with it, the default “Optional”
      minimum cardinality remains true for the Course entity. Therefore ‘reading’ the symbolism from the
      perspective of Course: (Left to Right) A course may have as few as zero sections associated with it (item
      3 below), or as many as numerous (item 4 below).




                                                      6
Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3




       We know that any given section can belong only to one course. Therefore ‘reading’ the symbolism from
       the perspective of Course_Section: (Right to Left), sections have a maximum cardinality of one (item 1
       above). However, we also know that a course section cannot exist without an associated course. To put
       this differently, if a section of a course exists, then that course must exist. So for any course section, at
       least one instance of the course must exist, even if a maximum of one course exists for that section. In
       this case then, the default symbol supplied by Visio (item 2 above) is inaccurate and must be changed
       from an optional “O”, to a mandatory “1”. In this next step then, we will make this change.

12.   Click on the Relationship shape to highlight it. Under Database Properties… Categories, click on the
      Miscellaneous category and select the Identifying radio button under “Relationship Type”.

       Notice how the Parent-to-child relationship now reflects “1-0 or more” and the symbol (circled below
       in purple) has changed from optional, to accurately reflect a minimum cardinality of mandatory “1”.




13. In many schools, course-sections are cross-listed to two or more courses listed in different departments.
    We will need therefore an additional adjustment.

                                                         7
Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3


    Click on the Course_Section entity to highlight it. Under Database Properties… Categories, click on the
    Columns category to display the entity attributes. Locate the row that has the “Physical Name”:
    course_ID and uncheck the PK check box. Notice how course_ID now becomes a Foreign Key (FK).




14. If we think about it though, a course cannot really exist without it ever being offered! Therefore,
    even if it should have many sections associated to it, at least one of those sections must be offered.
    The minimum cardinality of a course to a course_section then, is really “1”.

     Click on the Relationship shape to highlight it. Under Database Properties… Categories, click on the
     Miscellaneous category and select the One or more radio button under “Cardinality”. Notice the “O”
     symbol has now changed to a “1”, indicating the mandatory minimum.




                                                       8
Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3




                                This Completes

                  Systems Analysis and Design
                   Learning Module Series #5
                               Document version

Creating an Elementary Entity Relationship Diagram




                                              9

More Related Content

What's hot

02 sm3 xml_xp_03
02 sm3 xml_xp_0302 sm3 xml_xp_03
02 sm3 xml_xp_03Niit Care
 
Dbms ER Model
Dbms ER ModelDbms ER Model
Dbms ER Model
Sreedhar Chowdam
 
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
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship modelJafar Nesargi
 
5. Other Relational Languages in DBMS
5. Other Relational Languages in DBMS5. Other Relational Languages in DBMS
5. Other Relational Languages in DBMSkoolkampus
 
02 sm3 xml_xp_04
02 sm3 xml_xp_0402 sm3 xml_xp_04
02 sm3 xml_xp_04Niit Care
 
Database Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity TypesDatabase Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity Typesaakanksha s
 
EER Model
EER ModelEER Model
EER Model
Rahul Mukherjee
 
04 sm3 xml_xp_07
04 sm3 xml_xp_0704 sm3 xml_xp_07
04 sm3 xml_xp_07Niit Care
 
Chapt 1 odbms
Chapt 1 odbmsChapt 1 odbms
Chapt 1 odbms
Sushil Kulkarni
 
Database Management System
Database Management System Database Management System
Database Management System
FellowBuddy.com
 
3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMSkoolkampus
 
03 sm3 xml_xp_05
03 sm3 xml_xp_0503 sm3 xml_xp_05
03 sm3 xml_xp_05Niit Care
 
The relational data model part[1]
The relational data model part[1]The relational data model part[1]
The relational data model part[1]
Bashir Rezaie
 
03 sm3 xml_xp_06
03 sm3 xml_xp_0603 sm3 xml_xp_06
03 sm3 xml_xp_06Niit Care
 

What's hot (20)

ch14
ch14ch14
ch14
 
02 sm3 xml_xp_03
02 sm3 xml_xp_0302 sm3 xml_xp_03
02 sm3 xml_xp_03
 
Dbms ER Model
Dbms ER ModelDbms ER Model
Dbms ER Model
 
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
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship model
 
5. Other Relational Languages in DBMS
5. Other Relational Languages in DBMS5. Other Relational Languages in DBMS
5. Other Relational Languages in DBMS
 
02 sm3 xml_xp_04
02 sm3 xml_xp_0402 sm3 xml_xp_04
02 sm3 xml_xp_04
 
Database design
Database designDatabase design
Database design
 
Database Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity TypesDatabase Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity Types
 
EER Model
EER ModelEER Model
EER Model
 
Object oriented data model
Object oriented data modelObject oriented data model
Object oriented data model
 
04 sm3 xml_xp_07
04 sm3 xml_xp_0704 sm3 xml_xp_07
04 sm3 xml_xp_07
 
Chapt 1 odbms
Chapt 1 odbmsChapt 1 odbms
Chapt 1 odbms
 
Database Management System
Database Management System Database Management System
Database Management System
 
3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMS
 
03 sm3 xml_xp_05
03 sm3 xml_xp_0503 sm3 xml_xp_05
03 sm3 xml_xp_05
 
The relational data model part[1]
The relational data model part[1]The relational data model part[1]
The relational data model part[1]
 
03 sm3 xml_xp_06
03 sm3 xml_xp_0603 sm3 xml_xp_06
03 sm3 xml_xp_06
 
Ooad ch 4
Ooad ch 4Ooad ch 4
Ooad ch 4
 
Ooad ch 3
Ooad ch 3Ooad ch 3
Ooad ch 3
 

Similar to S5 elementary erd pdf

S1 relational database pdf
S1 relational database pdfS1 relational database pdf
S1 relational database pdfaviy1966
 
Database Systems Design, Implementation, and Manageme.docx
Database Systems Design, Implementation, and Manageme.docxDatabase Systems Design, Implementation, and Manageme.docx
Database Systems Design, Implementation, and Manageme.docx
theodorelove43763
 
S2 intersection table pdf
S2  intersection table pdfS2  intersection table pdf
S2 intersection table pdfaviy1966
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
Bhandari Nawaraj
 
Introductin to Data Modeling.
Introductin to Data Modeling.Introductin to Data Modeling.
Introductin to Data Modeling.
Cloudbells.com
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
Siti Ismail
 
Er Model Nandha&Mani
Er Model Nandha&ManiEr Model Nandha&Mani
Er Model Nandha&Maniguest1e0229a
 
Er Modeling
Er ModelingEr Modeling
Unit 3 final.pptx
Unit 3 final.pptxUnit 3 final.pptx
Unit 3 final.pptx
MaximusAranha
 
Unit 2 DBMS
Unit 2 DBMSUnit 2 DBMS
Unit 2 DBMS
DhivyaSubramaniyam
 
Analyzing and Visualizing Data Chapter 6Data Represent.docx
Analyzing and Visualizing Data Chapter 6Data Represent.docxAnalyzing and Visualizing Data Chapter 6Data Represent.docx
Analyzing and Visualizing Data Chapter 6Data Represent.docx
durantheseldine
 
Database Design and Normalization Techniques
Database Design and Normalization TechniquesDatabase Design and Normalization Techniques
Database Design and Normalization Techniques
Nishant Munjal
 
Logical ERD 2022.pptx
Logical ERD  2022.pptxLogical ERD  2022.pptx
Logical ERD 2022.pptx
Jeff Jacobs
 
OOAD with UML (Interaction Diagramming)
OOAD with UML (Interaction Diagramming)OOAD with UML (Interaction Diagramming)
OOAD with UML (Interaction Diagramming)
jsm1979
 
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
 
So Far (Schematically) yet So Near (Semantically)
So Far (Schematically) yet So Near (Semantically)So Far (Schematically) yet So Near (Semantically)
So Far (Schematically) yet So Near (Semantically)
Amit Sheth
 
Datamodelling
DatamodellingDatamodelling
Datamodelling
Fajar Baskoro
 
Tutorial - how to create a wheel view
Tutorial - how to create a wheel viewTutorial - how to create a wheel view
Tutorial - how to create a wheel view
Michael Warner
 
Contextual Ontology Alignment - ESWC 2011
Contextual Ontology Alignment - ESWC 2011Contextual Ontology Alignment - ESWC 2011
Contextual Ontology Alignment - ESWC 2011
Mariana Damova, Ph.D
 

Similar to S5 elementary erd pdf (20)

S1 relational database pdf
S1 relational database pdfS1 relational database pdf
S1 relational database pdf
 
Database Systems Design, Implementation, and Manageme.docx
Database Systems Design, Implementation, and Manageme.docxDatabase Systems Design, Implementation, and Manageme.docx
Database Systems Design, Implementation, and Manageme.docx
 
S2 intersection table pdf
S2  intersection table pdfS2  intersection table pdf
S2 intersection table pdf
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
 
Introductin to Data Modeling.
Introductin to Data Modeling.Introductin to Data Modeling.
Introductin to Data Modeling.
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
L7 er2
L7 er2L7 er2
L7 er2
 
Er Model Nandha&Mani
Er Model Nandha&ManiEr Model Nandha&Mani
Er Model Nandha&Mani
 
Er Modeling
Er ModelingEr Modeling
Er Modeling
 
Unit 3 final.pptx
Unit 3 final.pptxUnit 3 final.pptx
Unit 3 final.pptx
 
Unit 2 DBMS
Unit 2 DBMSUnit 2 DBMS
Unit 2 DBMS
 
Analyzing and Visualizing Data Chapter 6Data Represent.docx
Analyzing and Visualizing Data Chapter 6Data Represent.docxAnalyzing and Visualizing Data Chapter 6Data Represent.docx
Analyzing and Visualizing Data Chapter 6Data Represent.docx
 
Database Design and Normalization Techniques
Database Design and Normalization TechniquesDatabase Design and Normalization Techniques
Database Design and Normalization Techniques
 
Logical ERD 2022.pptx
Logical ERD  2022.pptxLogical ERD  2022.pptx
Logical ERD 2022.pptx
 
OOAD with UML (Interaction Diagramming)
OOAD with UML (Interaction Diagramming)OOAD with UML (Interaction Diagramming)
OOAD with UML (Interaction Diagramming)
 
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...
 
So Far (Schematically) yet So Near (Semantically)
So Far (Schematically) yet So Near (Semantically)So Far (Schematically) yet So Near (Semantically)
So Far (Schematically) yet So Near (Semantically)
 
Datamodelling
DatamodellingDatamodelling
Datamodelling
 
Tutorial - how to create a wheel view
Tutorial - how to create a wheel viewTutorial - how to create a wheel view
Tutorial - how to create a wheel view
 
Contextual Ontology Alignment - ESWC 2011
Contextual Ontology Alignment - ESWC 2011Contextual Ontology Alignment - ESWC 2011
Contextual Ontology Alignment - ESWC 2011
 

Recently uploaded

Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 

Recently uploaded (20)

Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 

S5 elementary erd pdf

  • 1. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3 Systems Analysis and Design Learning Module Series #5 Document version Creating an Elementary Entity Relationship Diagram Overview In this tutorial we will create an Entity Relationship Diagram (ERD) that contains two entities and we will customize these entities into a One-to-Many relationship. We will: • Initialize a new diagram • Create an Entity Relationship Diagram (ERD) that contains two entities • Customize the fields/columns of these entities and assign primary keys • Adjust the diagram symbols (such as the crows foot symbol) • Link the entities together, and • Decipher the symbols, the semantics of the created ERD Initializing a new diagram in MS Visio 2007    1. From the Menu Bar, click File… New… Software and Database… Database Model Diagram (US units) from the cascading drop down menus. 1
  • 2. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3 Creating two related entities    From the Shapes pane, drag the Entity shape over to the workspace grid. 2. Under Database Properties, click Definition and type: Course in the “Physical name” text box field. Customize fields and assign Primary Keys 3. Under Database Properties, under Categories, click on Columns and under the “Physical Name column”, enter the following attributes: course_ID, course_title, credits, and grading_method. 2
  • 3. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3 4. Locate the row for attribute course_ID and check the box under “PK” to designate this attribute as the Primary key. (Notice how the entity Course places the “PK course_ID” above the line.) 5. Repeat steps 3 through 5 for the second entity: Course_Sections. Its column names should be: section_ID, course_ID, location, employee_ID, and day_of_week. Additionally, section_ID should be designated as the Primary Key. 3
  • 4. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3 Adjusting the diagram symbols    Before we create a relationship between these 2 tables, we will need to set the display format options for the connector symbols. 6. From the Menu Bar, click on Database and select Options… Document from the cascading drop down menu. 7. The Database Document Options dialog box displays. Under the Relationship tab, check both the Relationships and Crow’s feet check boxes. Click OK. 4
  • 5. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3 Creating the relationship    8. From the Shapes pane, drag the Relationship shape and drop it on top of the Course entity. The Course entity will appear in Visio with a red box as shown below. 9. The reason we dropped the Relationship shape onto the Course entity, is because the Course entity is the Parent entity in the relationship. Since courses and sections share a One-to-Many relationship, we can view their relationship as Parent-Child. A course (parent) can have many sections (child-ren) associated with it, but a section can only exist if there is a course to which it is associated. Linking the entities together   10. Drag the unattached end of the relationship shape (green box end) over to the Course_Section entity. 5
  • 6. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3 11. After the relationship shape is dropped it will display the red end-boxes (indicated by the blue arrow below. Click anywhere on the grid to have it appear as shown by the red arrow. Deciphering the Symbols    Notice the symbols at each end of the relationship join. There are four symbols on a dotted line. The One-to-Many relationship between Course and Course_Section is represented by a “1” designated to the end of the dotted line that connects to the Course (Parent) entity – see item 1 below; and a “crows foot” symbol designated to the end of the dotted line that connects to the Course_Section (Child) entity – see item 4 below. These two symbols reflect the maximum cardinality of the relationship. The “O” symbol shown below in items 2 and 3, are the defaults that Visio supplies. These reflect the minimum cardinality of the relationship, the “O” representing an Optional relationship. Since we know that a course may or not have a section associated with it, the default “Optional” minimum cardinality remains true for the Course entity. Therefore ‘reading’ the symbolism from the perspective of Course: (Left to Right) A course may have as few as zero sections associated with it (item 3 below), or as many as numerous (item 4 below). 6
  • 7. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3 We know that any given section can belong only to one course. Therefore ‘reading’ the symbolism from the perspective of Course_Section: (Right to Left), sections have a maximum cardinality of one (item 1 above). However, we also know that a course section cannot exist without an associated course. To put this differently, if a section of a course exists, then that course must exist. So for any course section, at least one instance of the course must exist, even if a maximum of one course exists for that section. In this case then, the default symbol supplied by Visio (item 2 above) is inaccurate and must be changed from an optional “O”, to a mandatory “1”. In this next step then, we will make this change. 12. Click on the Relationship shape to highlight it. Under Database Properties… Categories, click on the Miscellaneous category and select the Identifying radio button under “Relationship Type”. Notice how the Parent-to-child relationship now reflects “1-0 or more” and the symbol (circled below in purple) has changed from optional, to accurately reflect a minimum cardinality of mandatory “1”. 13. In many schools, course-sections are cross-listed to two or more courses listed in different departments. We will need therefore an additional adjustment. 7
  • 8. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3 Click on the Course_Section entity to highlight it. Under Database Properties… Categories, click on the Columns category to display the entity attributes. Locate the row that has the “Physical Name”: course_ID and uncheck the PK check box. Notice how course_ID now becomes a Foreign Key (FK). 14. If we think about it though, a course cannot really exist without it ever being offered! Therefore, even if it should have many sections associated to it, at least one of those sections must be offered. The minimum cardinality of a course to a course_section then, is really “1”. Click on the Relationship shape to highlight it. Under Database Properties… Categories, click on the Miscellaneous category and select the One or more radio button under “Cardinality”. Notice the “O” symbol has now changed to a “1”, indicating the mandatory minimum. 8
  • 9. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-09-3 This Completes Systems Analysis and Design Learning Module Series #5 Document version Creating an Elementary Entity Relationship Diagram 9