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



                           Systems Analysis and Design
                            Learning Module Series #6
                                         Document version

                           Advanced Issues in Entity
                            Relationship Diagrams
Overview
In this tutorial we will

                Create two additional entities to the ERD that we created in Systems Analysis and Design,
                Learning Module Series #5, Creating an Elementary Level ERD
                Customize the fields/columns of these entities, and assign primary keys
                Break the many-to-many relationship between Student and Course_Section into two separate
                one-to-many relationships using an Intersection entity, namely, the Registration entity
                Adjust the diagram symbols (such as the crows foot symbol)
                Link the entities together, and
                Decipher the semantics of the created ERD

The first new entity (the Student entity) will contain a list of students who are taking some of the sections
associated with courses in our original diagram. Our goal is to be able to store (and accurately query) the
attribute “final_grade”, which is a functional dependency of Student and Section together:

                                  { (student, section)  final_grade }

Since a given student may be taking many sections; while any given section may be associated with many
students, there is no unambiguous way of identifying which set of records in one table belongs to a single record
in the other.




Each record in the Student Entity must be unique, that is, it must represent a unique (or individual) student.
To store the attribute final_grade in the Student Entity would mean that every row in the entity would contain
a student_ name along with an associated final_ grade. But if a given student is registered for more than one
                                                        1
Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-11-6


section, he will not receive a single, total grade; rather he will receive many grades. The Student Entity is
therefore inadequate in terms of being able to store all of his grades.

Similarly, each record in the Course_Section Entity must represent a unique (or individual) course section title.
To store the attribute final_grade in the Course_Section Entity would mean that every row in the table would
contain a course_section_name along with an associated final_ grade. But how would we identify which
student in a class of twenty is associated with this grade, for no one course section has merely one grade
assigned for that section; rather it has multiple associated grades corresponding to each student that completed
the class. The Course_Section Entity then, is also inadequate in terms of being able to store student grades.

It comes out that neither entity can effectively contain the attribute final_grade.

As a result, the relational model does not support the direct implementation of many-to-many relationships,
such a this one, or any other; and the only solution is to break the many-to-many relationship into a pair of
binary, one-to-many relationships. This is achieved by introducing a third table into the pattern. These “third”
tables have various names, but are most commonly referred to as either “intersection”, “composite”, or “cross-
reference” tables.




This new Intersection entity (the Registration entity) is utilized to eliminate the many-to-many relationship that
exists between students and course sections. The ID’s of the Student and Course_ Section entities,
respectively, are both placed into the intersection entity and combined into a single key -- a composite Primary
Key. The student_ID is then placed into the Course_ Section entity as a Foreign Key, and likewise, the
course_section_ID is placed into the Student entity also as a Foreign Key. Additionally, the Registration entity
will contain the attribute final_grade.

In plain English, the Registration entity is needed because it mediates between students and course sections.
Each semester, a student may create multiple registrations for access to multiple course sections, and each
semester, any given course section will likely have many different students registered for it.



Creating the Student & Registration Entities
Customize Columns, Assign primary keys and set the stage for our newly created Intersection Entity


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




1. Under Database Properties, under Categories, click on Definition to name the entity Student.

2. Click on Columns and under the Physical Name column, enter the following attributes: student_ID
   (primary key), course_section_ID, last_name, first_name, address, city, state, zip and ssn. Finally
   uncheck the PK check box for course_section_ID to remove its “Primary Key” designation.




3. Repeat steps 1 and 2 for the Registration entity. Its columns should be student_ID (primary key),
   course_section_ID (primary key) and final_grade.




4. Click on the Course_Section entity, and uncheck the PK check box for student_ID to remove its
   “Primary Key” designation.




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




   At this point we should have three entities: Course_Section, Student and Registration.

    (The Course entity is not displayed here since even though it exists in the original ERD I, it will not be
   necessary to use it in this tutorial).




Adjusting the Diagram Symbols

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


  1. From the Menu Bar, click on Database and select Options… Document from the cascading drop down
     menu to confirm that under the Relationship tab, Relationships and Crows Feet are checked. Click
     OK.




Linking the Entities Together
6. From the Shapes pane, drag the Relationship shape to hover over the Course_Section entity and drop it
   when the Visio red box appears around it. Now connect the unattached end of the Relationship shape to
   the Registration entity – again dropping it only when the red box appears around it.

7. Under Database Properties… Categories … Miscellaneous select the Identifying radio button under
   “Relationship Type”.
8.




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


9. From the Shapes pane, drag the Relationship shape and drop onto any available space on the workspace
   grid. Grab the “crows foot” end of the connector, and drag it to hover over the Registration Entity.
   When the Visio red box appears, drop it onto the Registration Entity.




6. Now grab the other end of the of the connector, and drag it to hover over the Student Entity. When the
   Visio red box appears, drop it onto the Student Entity.

   Notice that under Database Properties, “Relationship type” is automatically set to Identifying.




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


You should now have an ERD that looks like this:




Deciphering the symbols
The Course_Section entity contains a unique ID for all course-sections and the Student entity contains a
unique ID for all students. Each record in the Registration entity represents a registration of a student and his
chosen course-section. Each combination is uniquely identified by a composite ID that references a single
record (or section) in the Course_Section entity, as well as a single record (or student) in the Student entity.

Between Course-Sections and Registrations

       Reading from left to center, a course section can have zero or many registrations, but
       Reading center to left, a registration if, it exists, must belong to one and only course section.

Between Students and Registrations

       Reading from right to center, a student can have zero or many registrations, but
       Reading center to right, a registration, if it exists, must belong to one and only one student.




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




                                This Completes

                  Systems Analysis and Design
                   Learning Module Series #6
                               Document version

                  Advanced Issues in Entity
                   Relationship Diagrams




                                              8

More Related Content

PPT
Module 5 oodb systems semantic db systems
PPT
Object Oriented Dbms
PPTX
PDF
Conceptual Data Modelling Using ER-models
PPTX
Introduction of Database Design and Development
PPTX
Relational Model
PPTX
Chapter 8
Module 5 oodb systems semantic db systems
Object Oriented Dbms
Conceptual Data Modelling Using ER-models
Introduction of Database Design and Development
Relational Model
Chapter 8

What's hot (20)

PPT
Data modelingpresentation
PPTX
Object oriented database model
PPT
Lecture 03 data abstraction and er model
PDF
Data Models & Introduction to UML
PPT
Erd chapter 3
PDF
Intelligent Hiring with Resume Parser and Ranking using Natural Language Proc...
PDF
Chapt 1 odbms
PPTX
DBMS - ER Model
PDF
Ibps it officer exam capsule by affairs cloud
PDF
Database Systems - Entity Relationship Modeling (Chapter 4/2)
PPTX
Data modeling
PDF
ERD - Entity Relationship Diagram
PPS
02 sm3 xml_xp_03
PPT
D I T211 Chapter 3
PPSX
Introduction to OOA and UML - Part 1
PPTX
Resume parser
PDF
Dbms 7: ER Diagram Design Issue
PPT
Ch 3 E R Model
PDF
4 the relational data model and relational database constraints
PPT
Data modelingpresentation
Object oriented database model
Lecture 03 data abstraction and er model
Data Models & Introduction to UML
Erd chapter 3
Intelligent Hiring with Resume Parser and Ranking using Natural Language Proc...
Chapt 1 odbms
DBMS - ER Model
Ibps it officer exam capsule by affairs cloud
Database Systems - Entity Relationship Modeling (Chapter 4/2)
Data modeling
ERD - Entity Relationship Diagram
02 sm3 xml_xp_03
D I T211 Chapter 3
Introduction to OOA and UML - Part 1
Resume parser
Dbms 7: ER Diagram Design Issue
Ch 3 E R Model
4 the relational data model and relational database constraints
Ad

Viewers also liked (17)

PDF
Entity-relation-diagram
PDF
S3 dfd1 context diagram pdf
PPTX
Apresentação sobre ipv6
PPTX
Lecture 10 documentation techniques -transaction processing- james a. hall b...
DOCX
Context Diagram
PPTX
Sub Netting
PPTX
IP Address
PPT
IP Address
PPT
CCNA Exploration 2 - Chapter 6
PDF
Easy IP Addressing and Subnetting Manual for Starters
PPT
HSC Context and data flow diagrams ( DFD )
PPS
Ip address
PPT
Data Flow Diagram
PPT
Ip address and subnetting
PPTX
Dfd examples
PPSX
Data Flow Diagram Example
PDF
Hype vs. Reality: The AI Explainer
Entity-relation-diagram
S3 dfd1 context diagram pdf
Apresentação sobre ipv6
Lecture 10 documentation techniques -transaction processing- james a. hall b...
Context Diagram
Sub Netting
IP Address
IP Address
CCNA Exploration 2 - Chapter 6
Easy IP Addressing and Subnetting Manual for Starters
HSC Context and data flow diagrams ( DFD )
Ip address
Data Flow Diagram
Ip address and subnetting
Dfd examples
Data Flow Diagram Example
Hype vs. Reality: The AI Explainer
Ad

Similar to S6 advanced issues in erd pdf (20)

PDF
S5 elementary erd pdf
DOCX
Database Systems Design, Implementation, and Manageme.docx
PPT
Er diagrams
PDF
S2 intersection table pdf
PPTX
Entity Relationship Modelling
PDF
Unit1 rdbms study_materials
PDF
Unit1 rdbms study_materials-converted (1) (1)
PPTX
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
PDF
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pdf
PPTX
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pptx
PPTX
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
PPTX
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
PPT
Entity Relationship Diagaram
PDF
Db lec 02_new
DOCX
Communication and Social Media Guidelines and Rubric.htmlOve
PDF
S1 relational database pdf
PDF
dbms mannual.pdf
PDF
DBMS_unit2_Notes.pdf
PDF
Introduction to database-ER Model
PPTX
Data Models and Relational Database Design.pptx
S5 elementary erd pdf
Database Systems Design, Implementation, and Manageme.docx
Er diagrams
S2 intersection table pdf
Entity Relationship Modelling
Unit1 rdbms study_materials
Unit1 rdbms study_materials-converted (1) (1)
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pdf
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pptx
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
Entity Relationship Diagaram
Db lec 02_new
Communication and Social Media Guidelines and Rubric.htmlOve
S1 relational database pdf
dbms mannual.pdf
DBMS_unit2_Notes.pdf
Introduction to database-ER Model
Data Models and Relational Database Design.pptx

Recently uploaded (20)

PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PPTX
20th Century Theater, Methods, History.pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
Trump Administration's workforce development strategy
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
20th Century Theater, Methods, History.pptx
Weekly quiz Compilation Jan -July 25.pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
My India Quiz Book_20210205121199924.pdf
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Trump Administration's workforce development strategy
Hazard Identification & Risk Assessment .pdf
History, Philosophy and sociology of education (1).pptx
AI-driven educational solutions for real-life interventions in the Philippine...
Unit 4 Computer Architecture Multicore Processor.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Uderstanding digital marketing and marketing stratergie for engaging the digi...
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Environmental Education MCQ BD2EE - Share Source.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
B.Sc. DS Unit 2 Software Engineering.pptx

S6 advanced issues in erd pdf

  • 1. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-11-6 Systems Analysis and Design Learning Module Series #6 Document version Advanced Issues in Entity Relationship Diagrams Overview In this tutorial we will Create two additional entities to the ERD that we created in Systems Analysis and Design, Learning Module Series #5, Creating an Elementary Level ERD Customize the fields/columns of these entities, and assign primary keys Break the many-to-many relationship between Student and Course_Section into two separate one-to-many relationships using an Intersection entity, namely, the Registration entity Adjust the diagram symbols (such as the crows foot symbol) Link the entities together, and Decipher the semantics of the created ERD The first new entity (the Student entity) will contain a list of students who are taking some of the sections associated with courses in our original diagram. Our goal is to be able to store (and accurately query) the attribute “final_grade”, which is a functional dependency of Student and Section together: { (student, section)  final_grade } Since a given student may be taking many sections; while any given section may be associated with many students, there is no unambiguous way of identifying which set of records in one table belongs to a single record in the other. Each record in the Student Entity must be unique, that is, it must represent a unique (or individual) student. To store the attribute final_grade in the Student Entity would mean that every row in the entity would contain a student_ name along with an associated final_ grade. But if a given student is registered for more than one 1
  • 2. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-11-6 section, he will not receive a single, total grade; rather he will receive many grades. The Student Entity is therefore inadequate in terms of being able to store all of his grades. Similarly, each record in the Course_Section Entity must represent a unique (or individual) course section title. To store the attribute final_grade in the Course_Section Entity would mean that every row in the table would contain a course_section_name along with an associated final_ grade. But how would we identify which student in a class of twenty is associated with this grade, for no one course section has merely one grade assigned for that section; rather it has multiple associated grades corresponding to each student that completed the class. The Course_Section Entity then, is also inadequate in terms of being able to store student grades. It comes out that neither entity can effectively contain the attribute final_grade. As a result, the relational model does not support the direct implementation of many-to-many relationships, such a this one, or any other; and the only solution is to break the many-to-many relationship into a pair of binary, one-to-many relationships. This is achieved by introducing a third table into the pattern. These “third” tables have various names, but are most commonly referred to as either “intersection”, “composite”, or “cross- reference” tables. This new Intersection entity (the Registration entity) is utilized to eliminate the many-to-many relationship that exists between students and course sections. The ID’s of the Student and Course_ Section entities, respectively, are both placed into the intersection entity and combined into a single key -- a composite Primary Key. The student_ID is then placed into the Course_ Section entity as a Foreign Key, and likewise, the course_section_ID is placed into the Student entity also as a Foreign Key. Additionally, the Registration entity will contain the attribute final_grade. In plain English, the Registration entity is needed because it mediates between students and course sections. Each semester, a student may create multiple registrations for access to multiple course sections, and each semester, any given course section will likely have many different students registered for it. Creating the Student & Registration Entities Customize Columns, Assign primary keys and set the stage for our newly created Intersection Entity 2
  • 3. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-11-6 1. Under Database Properties, under Categories, click on Definition to name the entity Student. 2. Click on Columns and under the Physical Name column, enter the following attributes: student_ID (primary key), course_section_ID, last_name, first_name, address, city, state, zip and ssn. Finally uncheck the PK check box for course_section_ID to remove its “Primary Key” designation. 3. Repeat steps 1 and 2 for the Registration entity. Its columns should be student_ID (primary key), course_section_ID (primary key) and final_grade. 4. Click on the Course_Section entity, and uncheck the PK check box for student_ID to remove its “Primary Key” designation. 3
  • 4. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-11-6 At this point we should have three entities: Course_Section, Student and Registration. (The Course entity is not displayed here since even though it exists in the original ERD I, it will not be necessary to use it in this tutorial). Adjusting the Diagram Symbols 4
  • 5. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-11-6 1. From the Menu Bar, click on Database and select Options… Document from the cascading drop down menu to confirm that under the Relationship tab, Relationships and Crows Feet are checked. Click OK. Linking the Entities Together 6. From the Shapes pane, drag the Relationship shape to hover over the Course_Section entity and drop it when the Visio red box appears around it. Now connect the unattached end of the Relationship shape to the Registration entity – again dropping it only when the red box appears around it. 7. Under Database Properties… Categories … Miscellaneous select the Identifying radio button under “Relationship Type”. 8. 5
  • 6. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-11-6 9. From the Shapes pane, drag the Relationship shape and drop onto any available space on the workspace grid. Grab the “crows foot” end of the connector, and drag it to hover over the Registration Entity. When the Visio red box appears, drop it onto the Registration Entity. 6. Now grab the other end of the of the connector, and drag it to hover over the Student Entity. When the Visio red box appears, drop it onto the Student Entity. Notice that under Database Properties, “Relationship type” is automatically set to Identifying. 6
  • 7. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-11-6 You should now have an ERD that looks like this: Deciphering the symbols The Course_Section entity contains a unique ID for all course-sections and the Student entity contains a unique ID for all students. Each record in the Registration entity represents a registration of a student and his chosen course-section. Each combination is uniquely identified by a composite ID that references a single record (or section) in the Course_Section entity, as well as a single record (or student) in the Student entity. Between Course-Sections and Registrations Reading from left to center, a course section can have zero or many registrations, but Reading center to left, a registration if, it exists, must belong to one and only course section. Between Students and Registrations Reading from right to center, a student can have zero or many registrations, but Reading center to right, a registration, if it exists, must belong to one and only one student. 7
  • 8. Copyright © 2009 Bahn, D., Yardley, A. & Tang, H. All Rights Reserved. ISBN: 978-1-936203-11-6 This Completes Systems Analysis and Design Learning Module Series #6 Document version Advanced Issues in Entity Relationship Diagrams 8