Data Modeling using Entity Relationship Diagramming (ERD)

Slides:



Advertisements
Similar presentations
Process Models: Data Flow Diagrams
Advertisements

Database development (MIS 533) MBS in Management Information Systems and Managerial Accounting Systems (2007 / 2008) Fergal Carton Business Information.
Information System Analysis Lab 7. ERD entity-relationship diagram is a data modeling technique that creates a graphical representation of the entities,
© Copyright 2011 John Wiley & Sons, Inc.
Johnb DFDs and Design John Bell The DeMarco notation.
Data Flow Diagramming Rules Processes –a process must have at least one input –a process must have at least one output –a process name (except for the.
Online Real Estate System Group Members Introduction Member 1 Name: Awais Khalil VU ID: BC Introduction: Assalam-o-Alaikum, I am Awais Khalil.
Data Modeling and Entity- Relationship Model II. IST2102 I want a database to maintain departments in my company. Store information about my employees,
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
L ECTURE 11 – D ATA M ODELLING Data Dictionaries Entity Relationship Diagram for Data Modelling Steps to Construct Entity Relationship Diagrams Validation.
Basic Symbols.
Lecture 8 – USE CASE ANALYSIS
Information Resources Management February 6, 2001.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Data.
Entity Relationship Diagrams
Review Questions What is data modeling? What is the actual data model that is created called? Data modeling is a technique for organizing and documenting.
Gathering Information and Use Case Scenarios
Process Models: Data Flow Diagrams
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Systems.
Systems Analysis and Design in a Changing World, Fifth Edition
Data Flow Diagrams (DFDs)
Chapter 6 The Traditional Approach to Requirements
CMIS 470 Structured Systems Design
1. 2 Data Modeling 3 Process of creating a logical representation of the structure of the database The most important task in database development E-R.
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition Copyright 2006 © John Wiley & Sons, Inc. All rights reserved..
IT323 - Software Engineering 2 Tutorial 1. 0 The system 1.0 A Function 1.1 Activity of the function Task Task Task 1.2 Another activity.
Systems analysis and design, 6th edition Dennis, wixom, and roth
Systems Analysis and Design in a Changing World, Fifth Edition
Systems Analysis – Analyzing Requirements.  Analyzing requirement stage identifies user information needs and new systems requirements  IS dev team.
Managing the development and purchase of information systems (Part 1)
Data Flow Diagrams A structured analysis technique that employs a set of visual representations of the data that moves through the organization, the paths.
1 Ref: Prof Sarda Process Modeling…… Lecture Outline Data flow diagram (DFD)
For Real Estate Agents Farming Equipment Heavy Equipment Real Estate Motor Vehicles.
Intro to UML - OO Class Diagrams Week 5 CMIS570. Plan for Tonight Object terms Unified Modeling Language history Class Diagrams Intro to Oracle Oracle.
CMIS 470 Structured Systems Design Object-Oriented Analysis and Design – Sequence Diagrams; BPP details Week 5.
Object-Oriented Sequence Diagrams
More DFDs Week 7 CMIS570.
DFDs.
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 6 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 6 The Traditional Approach to Requirements.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
1 DATA FLOW DIAGRAM. 2 Outline Process decomposition diagrams Data flow diagram (DFD)
Copyright Ó Oracle Corporation, All rights reserved. Assign Unique Identifiers A Unique Identifier (UID) is any combination of attributes and/or.
MIS2502: Data Analytics Relational Data Modeling
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
IS3320 Developing and Using Management Information Systems Lecture 18: Data-Flow Diagrams 3 – Level 1 Modelling Rob Gleasure
More DFDs Class 12.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
6 Systems Analysis and Design in a Changing World, Fourth Edition.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
Modelling Complex Systems
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Database Design Chapters 17 and 18.
Let try to identify the conectivity of these entity relationship
Management Movie Management System Customers Databases Vendors
Systems Analysis and Design
Database Requirements and Design
DATA FLOW DIAGRAM EXAMPLES
ER MODEL Lecture 3.
Data Modelling Chapter 7
MIS2502: Data Analytics Relational Data Modeling
Database Design Chapters 17 and 18.
MIS2502: Data Analytics Relational Data Modeling 2
Database Management system
Database Management system
Entity Relationship Model
Appendix A Data Modeling MANAGEMENT INFORMATION SYSTEMS 8/E
Presentation transcript:

Data Modeling using Entity Relationship Diagramming (ERD)

ERD Planning Use Cases. DFDs. ERDs. “Working toward an Analysis actual information system”. Analysis Design Implementation

Use Cases Users DFDs ERDs Information System

ERD Planning Use Cases. DFDs. ERDs. “Working toward an Analysis actual information system”. Analysis Design Physical DFDs and ERDs go here. Implementation

Items in an ERD Entity Relationship * Attribute (identifier) Attribute

Items in an ERD Entity Relationship Each occurrence of an Entity * Attribute (identifier) Attribute Each occurrence of an Entity is an “instance”.

Cardinality Cardinality refers to the number of times instances in one entity can be related to instances in another entity One instance in an entity refers to one and only one instance in the related entity (1:1)

Cardinality I find it helpful to use this sentence: A single <instance> <relationship> in at most <either 1 or many> <entity>.

1:1 Dept. Manager Dept. contains Cardinality symbols

Cardinality Cardinality refers to the number of times instances in one entity can be related to instances in another entity One instance in an entity refers to one and only one instance in the related entity (1:1) One instance in an entity refers to one or more instances in the related entity (1:M)

1:M Dept. Manager Dept. Employee manages The “Many” Cardinality symbol

Cardinality Cardinality refers to the number of times instances in one entity can be related to instances in another entity One instance in an entity refers to one and only one instance in the related entity (1:1) One instance in an entity refers to one or more instances in the related entity (1:M) One or more instances in an entity refer to one or more instances in the related entity (M:M)

M:M Dept. Projects Dept. Employee works on

Modality Modality refers to the minimum number of times that an instance in one entity can be related to an instance in another entity One means that an instance in the related entity must exist for an instance in another entity to be valid

Modality I find it helpful to use this sentence: A single <instance> <relationship> in at least <either 0 or 1> <entity>.

1 Dept. Manager Dept. contains Modality “1” symbols

Modality Modality refers to the minimum number of times that an instance in one entity can be related to an instance in another entity One means that an instance in the related entity must exist for an instance in another entity to be valid Zero means that no instance in the related entity is necessary for an instance in another entity to be valid

Dept. Manager Dept. Employee manages The Modality “0” symbol

Both Dept. Projects Dept. Employee works on

Steps in Building ERDs Identify the entities Add appropriate attributes for each entity Draw the relationships that connect associated entities

ERD Building Tips Data stores of the DFD should correspond to entities Only include entities with more than one instance of information Don’t include entities associated with implementation of the system, not the system itself

Balancing ERDs with DFDs All analysis activities are interrelated Process models contain two data components Data flows and data stores The DFD data components need to balance the ERD’s data stores (entities) and data elements (attributes) Many CASE tools provide features to check for imbalance Check that all data stores and elements correspond between models Do not follow thoughtlessly -- check that the models make sense!

Recall: on-line university registration (from Use Case & DFD examples) The system should enable the staff of each academic department to examine the course offered by their department, add and remove course, and change the information about them (e.g., the maximum number of students). It should permit students to examine currently available courses, add and drop courses to and from their schedules, and examine the course for which they are enrolled. Department staff should be able to print a variety of reports about the courses and the students enrolled in them. They system should ensure that no student takes too many course and that students who have any unpaid fees are not permitted to register. (Assume that a fees data store is maintained by the university's financial office that the registration system accesses but does not change.)

Level 0 DFD: Registration Course Offering Changes 1 Maintain department course offerings Available course request Available courses Available courses Course Offering List 2 Maintain student enrollments Students Available courses Course enrollment Course Offering Updates Course Offerings Student schedule Course enrollment request D2 Course Offerings Dept Staff Student schedule Course information D3 Enrollments Fee Payment History Student Enrollment Report Request 3 Course Enrollment Reports D1 Fees Enrollment information Student Enrollment Report

Registration ERD Course Enrollment Offering Dept. # * Student ID Hours credit Dept. # * Course # Course name Hours Credit Max. size Number enrolled includes

Recall: real estate (from Use Case & DFD examples) A Real Estate Inc. (AREI) sells houses. People who want to sell their houses sign a contract with AREI and provide information on their house. This information is kept in a database by AREI and a subset of this information is sent to the citywide multiple-listing service used by all real estate agents. AREI works with two types of potential buyers. Some buyers have an interest in one specific house. In this case, AREI prints information from its database, which the real estate agent uses to help show the house to the buyer (a process beyond the scope of the system to be modeled). Other buyers seek AREI’s advice in finding a house that meets their needs. In this case, the buyer completes a buyer information form that is entered into a buyer database, and AREI real estate agents use its information to search AREI’s database and the multiple-listing service for houses that meet their needs. The results of these searches are printed and used to help the real estate agent show houses to the buyer.

Level 0 DFD: AREI Sellers Maintain house seller information D2 Sales Contracts House Generate requested report 1 2 Sales Contract D3 Offered Houses House information Buyer information form D1 Multiple Listing Services File Sales Contract Buyers House information request D4 Buyer

AREI ERD Sales Contract * Seller name Address Phone Listing date Listing term Offered House Style Size Price Buyer * Name Preferred style Preferred size Price limit offers shown