Entity Relationship Diagrams. Entities An entity is something about which the system/business needs to store data. Entities are drawn as rectangles The.

Slides:



Advertisements
Similar presentations
Information System Analysis Lab 7. ERD entity-relationship diagram is a data modeling technique that creates a graphical representation of the entities,
Advertisements

Business Processes, Data Modeling and Information Systems
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
ENTITY RELATIONSHIP MODELLING
ERD diagram Data Design - Mr. Ahmad Al-Ghoul
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Modeling the Data: Conceptual and Logical Data Modeling
Entity-Relation Modeling Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
ISMT221 Information Systems Analysis and Design Entity-Relationship Diagram Lab 4 Tony Tam.
MIS 210 Fall 2004Sylnovie Merchant, Ph. D. Lecture 4: Data Modeling Process Modeling MIS 210 Information Systems I.
Systems Analysis Requirements structuring Process Modeling Logic Modeling Data Modeling  Represents the contents and structure of the DFD’s data flows.
Entity Relationship Diagrams Basic Elements and Rules.
1 MIS 340: Data Modeling 2 Yong Choi School of Business CSUB.
Entity Relationship Diagrams
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
System Analysis and Design
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Slide 1 Chapter 05 – Part 1 Data Modeling with the Entity-Relationship Model.
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 138 C HAPTER 15 Database Design Using the REA Data Model.
BIS310: Week 7 BIS310: Structured Analysis and Design Data Modeling and Database Design.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Yong Choi School of Business CSUB
Entity-Relationship Modeling I The cautious seldom err. Confucius.
Computer System Analysis Chapter 10 Structuring System Requirements: Conceptual Data Modeling Dr. Sana’a Wafa Al-Sayegh 1 st quadmaster University of Palestine.
Data Modeling and Relational Database Design. Analyze and model the relationships between entities Draw an initial entity relationship diagram Read the.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
1 Data Modeling 2 Yong Choi School of Business CSUB.
Chapter 5 Entity–Relationship Modeling
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
Entity Relationship Diagrams Objectives s Learn the Elements of the E-R model (entities, attributes, and relationships) s Show how to apply the E-R model.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
IMS 6217: Relationships 1 Dr. Lawrence West, MIS Dept., University of Central Florida Database Design--Topics DB Design Steps Identify.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 Domain Classes.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Copyright Irwin/McGraw-Hill Object Modeling Prepared by Kevin C. Dittman for Systems Analysis & Design Methods 4ed by J. L. Whitten & L. D. Bentley.
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
IFS310: Module 6 3/1/2007 Data Modeling and Entity-Relationship Diagrams.
Relational Theory and Design
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
Entity/Relationship Modelling. Entity Relationship Modelling In This Lecture Entity/Relationship models Entities and Attributes Relationships Attributes.
Entity relationship diagram Name: Quian Crosby Form:6AQ Subject: Information Technology Teacher: Ms. D. Anderson.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
Done By : Gillian Swaby. Objectives: 1. What is an Entity-Relationship Diagram? 2.What are the symbols used in ERD? Explain each. 3. What is a one- to-
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
C_ITIP211 LECTURER: E.DONDO. Unit 4 : DATA MODELING.
Database Design Chapters 17 and 18.
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Entity/Relationship Modelling
Entity Relationship Diagram
Chapter 6 Structuring System Requirements: Conceptual Data Modeling
Database Design Using the REA Data Model
Chapter 7 Structuring System Requirements: Conceptual Data Modeling
Entity-Relation Modeling
System Design (Relationship)
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
MIS2502: Data Analytics Relational Data Modeling
Database Design Chapters 17 and 18.
Guide to Modeling Keys to E-R diagrams.
MIS2502: Data Analytics Relational Data Modeling 2
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Database Management system
Guide to Modeling Keys to E-R diagrams.
Conceptual Data Modeling
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
Presentation transcript:

Entity Relationship Diagrams

Entities An entity is something about which the system/business needs to store data. Entities are drawn as rectangles The rectangle represents all instances of the named entity Important to distinguish between an entity and its instances

Attributes Entity is something about which we want to store data Specific items of data we want to store are data attributes To record attributes of the entity we list them within the entity shape

Example Student.Last name.First name Address.Street address.Town.County.Post code

Relationships Entities and attributes do not occur in isolation. The things they represent interact with and impact one another to support the business A relationship is a natural business association that exists between one or more entities

Example A current STUDENT is ENROLLED ON one or more SUBJECTS A SUBJECT is STUDIED BY none (zero), one or more students STUDENT SUBJECT Is enrolled on Is studied by Verb phrases are used for relationships

Cardinality The previous example shows the complexity or degree of each relationship Must there exist an instance of STUDENT for each instance of SUBJECT – No Must there exist an instance of SUBJECT for each instance of STUDENT – Yes How many instances of STUDY can exist for each instance of STUDENT – Many How many instances of STUDENT can exist for each instance of STUDY - Many

Cardinality continued Cardinality defines the minimum and maximum number of occurrences of one entity that may be related to a single occurrence of the other entity All relationships are bidirectional therefore cardinality must be defined in both directions for every relationship

Cardinality symbols Cardinality interpretation Exactly one (one and only one) Minimum instances 1 Maximum instances1 or

Cardinality Cardinality interpretation Zero or one Minimum instances 0 Maximum instances1

Cardinality Cardinality interpretation One or more Minimum instances 1 Maximum instancesmany (>1)

Cardinality Cardinality interpretation Zero, one or more Minimum instances 0 Maximum instancesmany (>1)

Cardinality Cardinality interpretation More than one Minimum instances >1 Maximum instances>1

Cardinality Cardinality tells us the following rules about the data we want to store: When we insert a STUDENT instance in the database we must link that student to at least one instance of SUBJECT A STUDENT can study more than one SUBJECT and we must be able to store data that includes all SUBJECT(s) for a given STUDENT

Cardinality We must insert a SUBJECT before we can link (associate) STUDENTS to that SUBJECT. This is why SUBJECT can have zero students – no students have yet enrolled on that subject. Once a SUBJECT has been inserted into the database, we can link (associate) many STUDENTS with that SUBJECT