1 Version 1.0 02/05/2004 © 2004 Robert Oshana Requirements Engineering Entity relationship diagrams.

Slides:



Advertisements
Similar presentations
Database Systems: Design, Implementation, and Management Tenth Edition
Advertisements

CSE 441: Systems Analysis & Design ERD – Detailed Study LAB 4 Yusuf Altunel.
Chapter 4 Enterprise Modeling.
Modeling the Data: Conceptual and Logical Data Modeling
FIS 431/631 Financial Information Systems: Analysis and Design REA Modeling Joe Callaghan Oakland University Department of Accounting & Finance.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
1 MIS 340: Data Modeling 2 Yong Choi School of Business CSUB.
Entity Relationship Diagrams
Entity-Relationship Model and Diagrams (continued)
Entity Relationship Diagrams Don Archer. Entity Relationship Diagram  ERDs – depicts data in terms of the entities and relationships described by the.
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
ENTITY RELATIONSHIP DATA MODEL ELIZABETH GEORGE. INTRODUCTION Architect Aeronautical engineers Computer architects Traffic engineers.
CSCI 242 Relational Data Modeling Copyright 2011, David C. Roberts, all rights reserved.
Modern Systems Analysis and Design Third Edition
APPENDIX C DESIGNING DATABASES
Data Modeling 1 Yong Choi School of Business CSUB.
Trisha Cummings.  Most people involved in application development follow some kind of methodology.  A methodology is a prescribed set of processes through.
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
Practical tips for creating entity relationship diagrams (ERDs) Chitu Okoli Associate Professor in Business Technology Management John Molson School of.
Entity-Relationship modeling Transparencies
Entity Relationship Modeling
Entity-Relationship Modeling I The cautious seldom err. Confucius.
IT 244 Database Management System Data Modeling 1 Ref: A First Course in Database System Jeffrey D Ullman & Jennifer Widom.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Data Modeling ERM ERD.
Systems analysis and design, 6th edition Dennis, wixom, and roth
Systems Analysis – Analyzing Requirements.  Analyzing requirement stage identifies user information needs and new systems requirements  IS dev team.
CSE 441: Systems Analysis & Design
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Database Systems: Design, Implementation, and Management Ninth Edition
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
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.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
Database Design Principles – Lecture 3
Databases. Not All Tables Are Created Equal Spreadsheets use tables to store data and formulas associated with that data The “meaning” of data is implicit.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
DataBase Management Systems Introduction to Database Technology EAK 362/2 MIS LECTURE 4 PART 1.
Requirements Analysis and Design Engineering Southern Methodist University CSE 7313.
1. Objectives At the end of this chapter you should be able to:  Discuss the use and features of a data model  Define the terms entity and attribute.
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
Requirements Engineering Southern Methodist University CSE 7316 – Chapter 2 (Data Modeling)
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Description and exemplification of entity-relationship modelling.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
Databases Illuminated Chapter 3 The Entity Relationship Model.
Week 2 Introduction to Data Modelling
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
Data Modeling AND ER MODELS.
 DEFINE THE ENTITY  IDENTIFY THE ENTITY TYPES AND SETS OF ENTITY  EXPLAIN THE ATTRIBUTE AND A VALUE SET  EXPLAIN E-R MODEL EXPLAIN THE FOLLOWING RELATIONSHIP.
Course Instructor: Kashif I hsan 1. Chapter # 6 2.
Database Systems: Design, Implementation, and Management Tenth Edition
Entity Relationship Diagram
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
CS311 Database Management system
Database Management system
Entity-Relationship Diagram (ERD)
IT 244 Database Management System
Presentation transcript:

1 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Entity relationship diagrams

2 Version /05/2004 © 2004 Robert Oshana Requirements Engineering What is an ERD? Abstractions of the real world which simplify the problem to be solved while retaining its essential features Used to; –Identify the data that must be captured, stored, and retrieved in order to support the business activities performed by the organization –Identify the data required to derive and report on the performance measures that an organization should be monitoring

3 Version /05/2004 © 2004 Robert Oshana Requirements Engineering What is an ERD? Must be clearly defined so that all understand exactly what is being represented Relationships are evaluated in both directions to determine what type of relationship exists –One friend may have many telephones –One telephone belongs to a single friend

4 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Components of ERD Entities Attributes Relationships

5 Version /05/2004 © 2004 Robert Oshana Requirements Engineering What’s in an ERD? Entities are drawn in boxes Entities should be expressed in plural Relationship is a line connecting the entities Arrows represent different types of relationships List of attributes developed as you go Verbs placed on relationship lines that describe relationship

6 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Entities People, places, things, events, concepts of interest to an organization Anything the organization needs to store data about Represented by labeled boxes Collections of things

7 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Entities AircraftWedding CustomerSale

8 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Entities EMPLOYEE; collection of employees that work at an organization Individual members (employees) of the collection are called occurrences of the EMPLOYEE entity Entities should have detailed descriptions (space limited inside the box)

9 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Entities Further described by attributes or data elements Smallest units of data that can be described in a meaningful manner Employee Employee # Surname Given name Date of birth Telephone # Department

10 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Relationship Frequently, a meaningful relationship exists between two different types of entity –EMPLOYEE works in a DEPARTMENT –LAWYER advises CLIENTS –EQUIPMENT is allocated to PROJECTS –TRUCK is a type of VEHICLE

11 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Types of Relationships One-to-One relationships One-to-Many relationships Many-to-Many relationships

12 Version /05/2004 © 2004 Robert Oshana Requirements Engineering One-to-One relationships Takes place when a single occurrence of an entity is related to just one occurrence of a second entity –A ROOF covers one BUILDING –A BUILDING is covered by one ROOF

13 Version /05/2004 © 2004 Robert Oshana Requirements Engineering One-to-One relationships Roof Building Covered by Covers

14 Version /05/2004 © 2004 Robert Oshana Requirements Engineering One-to-Many relationships Takes place when a single occurrence of an entity is related to many occurrences of a second entity –EMPLOYEE works in one DEPARTMENT –A DEPARTMENT has many EMPLOYEES

15 Version /05/2004 © 2004 Robert Oshana Requirements Engineering One-to-Many relationships Department Employee Works in has

16 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Many-to-Many relationships Takes place when many occurrences of an entity are related to many occurrences of a second entity –EQUIPMENT is allocated to many PROJECTS –PROJECT is related to many items of EQUIPMENT

17 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Many-to-Many relationships Equipment Project allocated

18 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Choosing the right relationship Type of relationship can change –Purpose of the model –Length of time involved –Definition of the entities participating in the relationship If the definition of a ROOF entity is an apex or flat surface covering a building, then a BUILDING is covered by many ROOFS

19 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Choosing the right relationship Likewise, over time an EMPLOYEE works in many DEPARTMENTS

20 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Tips on building ERDs Nouns are clues to the entities of a business Start by describing the work that is done in the project or department or area of interest –Pull put nouns in the sentences as potential candidates for entities

21 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Tips on building ERDs “My address book contains addresses and telephone numbers for both friends and businesses”

22 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Tips on building ERDs Verbs and adjectives sometimes help to get at relationships between entities –Friends have addresses Many-to-many relationships will cause you lots of trouble! –Get rid of them by defining an intermediate third entity —Friends/kids between “Kids” and “Friends”

23 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Tips on building ERDs Spend the time to accurately define your entities so that everyone clearly understands what they represent –You will save yourself a lot of time and headaches later in the process A step by step worksheet can also be helpful