Data Modeling (Entity Relationship Diagram) Farrokh Alemi, Ph.D. Updated by Janusz Wojtusiak (Fall 2009)

Slides:



Advertisements
Similar presentations
Copyright Irwin/McGraw-Hill Data Modeling Prepared by Kevin C. Dittman for Systems Analysis & Design Methods 4ed by J. L. Whitten & L. D. Bentley.
Advertisements

IT420: Database Management and Organization
Managing Data Resources
Entity Relationship Diagrams Basic Elements and Rules.
Entity-Relationship Model and Diagrams (continued)
Entity Relationship Diagrams
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
Systems Analysis and Design in a Changing World, 6th Edition
Database Design & ER Diagrams
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
Entity Relationship Diagram Farrokh Alemi Ph.D. Francesco Loaiza, Ph.D. J.D. Vikas Arya.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Computer System Analysis Chapter 10 Structuring System Requirements: Conceptual Data Modeling Dr. Sana’a Wafa Al-Sayegh 1 st quadmaster University of Palestine.
INFORMATION X INFO415: Systems Analysis Systems Analysis Project Deliverable 3 Requirements Models.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Business Process Modeling
Modeling Relationships Farrokh Alemi, Ph.D. Updated by Janusz Wojtusiak, Fall 2009.
Chapter 5 Entity–Relationship Modeling
G057 - Lecture 02 Introduction To Database System Concepts Mr C Johnston ICT Teacher
5 Systems Analysis and Design in a Changing World, Fourth Edition.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Software Engineering, 8th edition Chapter 8 1 Courtesy: ©Ian Somerville 2006 April 06 th, 2009 Lecture # 13 System models.
1 Chapter 11 Entity-Relationship Modeling Transparencies Last Updated: 25 April 2011 By M. Arief
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
Lecture 6: Structural Modeling
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
Component 4/Unit 6b Topic II Relational Databases Keys and relationships Data modeling Database acquisition Database Management System (DBMS) Database.
IFS310: Module 6 3/1/2007 Data Modeling and Entity-Relationship Diagrams.
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.
Database Design – Lecture 4 Conceptual Data Modeling.
Domain Classes – Part 1.  Analyze Requirements as per Use Case Model  Domain Model (Conceptual Class Diagram)  Interaction (Sequence) Diagrams  System.
CIS 210 Systems Analysis and Development Week 6 Part I Structuring Systems Data Requirements,
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
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.
Introduction to modeling
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Data Modeling and Entity-Relationship Model I
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
Welcome: To the fifth learning sequence “ Data Models “ Recap : In the previous learning sequence, we discussed The Database concepts. Present learning:
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Lecture 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
DOMAIN CLASSES – PART 1 BTS430 Systems Analysis and Design using UML.
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Data Modeling (Entity Relationship Diagram)
Conceptual database design ERD’s
Business System Development
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA
Chapter 4: Business Process and Functional Modeling, continued
Business System Development
Database Design – Lecture 4
IDEF1X Standard IDEF1X (Integrated Definition 1, Extended) was announced as a national standard in 1993 It defines entities, relationships, and attributes.
Entity-Relationship Model and Diagrams (continued)
Entity Relationship Diagrams
Entity Relationship Diagrams
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Relational Database Model
SYS466 Domain Classes – Part 1.
Chapter 1: The Database Environment
Normalization Organized by Farrokh Alemi, Ph.D.
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
Information system analysis and design
Presentation transcript:

Data Modeling (Entity Relationship Diagram) Farrokh Alemi, Ph.D. Updated by Janusz Wojtusiak (Fall 2009)

Overview of the Course 1.Abstract business process into database requirements 2.Model system requirements into a database, and 3.Use Standard Query Language to gain access to the data.

Previous Lecture Presented Guidelines for Defining Fields in Databases.

Entity An entity is something that has an independent, separate, or self-contained existence Divide the list of fields into entities –Each entity will represent a table –Each field in the table is an attribute of the entity.

Entity NameTypeDef. Attribute 1..n NameDef. Data Type Constr. Logical Data Types String Data Types Binary Data Types Numeric Data Types Date/Time Data Types Entities Describe Data Classes

Shared Features Suggest Entities Examine common features of the fields. –"Patient's first name," "Patient's last name" and "Patient's birthday" suggest an entity called "Patient." –"Type of diagnosis" and "Name of diagnosis" suggest an entity called "Diagnosis." Make sense to others Entity names should imply what it is about

Naming of Entities “Create a name that is unambiguous Use the minimum number of words Do not use physical characteristics of the database Do not use abbreviations Do not use words that restrict the data Do not use words that suggest two concepts Use singular form of the name."

Describing an Entity Always include a brief description of the entity. –Set up expectations about fields The entity "Patient" may be defined as: "The clients in the court diversion program who have mental illness. Information about the patients need to be kept in order to track if their court ordered treatment is working and has been followed."

Rules for Assigning Entities No two entities should be about the same things. –For example, calling one entity "Patient" and another "Client" may create both confusion and inefficiency.

Rules for Assigning Entities Do not assign the same field in two different entities. –Patient's name belongs to the "Patient“ entity and not to “Diagnosis” entity. Satisfy the intuitions of future users of the database

Rules for Assigning Entities Make sure that time based events are separated from time independent fields. –A patient's diagnoses does not belong to the entity "Patients" but to “Visits.”

Rules for assigning entities If several entities share the same fields, see if you can partition the shared fields into a separate entity. –Create a new entity called "Person" and keep shared fields in it. Then if an employee falls ill or is seen in the court, their name does not need to be entered several times once as an employee, next as a patient and last as a court client.

Rules for Assigning Entities Include look-up entities as you proceed. Look up table Main entity

Review & Revise Entities Review the fields within entities for completeness. –Many entities suggest new fields that have not been thought about. Review again to see if the fields fit new entities Share the list with organizational members Documentation –a name, a description, a statement of why it is important to track the entity, and a list of fields that belong to it

Entity Relationships Implied in the very definition of the entity. Three types of relationships: –One to one –One to many –Many to many How one entity is mapped into another is also referred to as cardinality of the entity Cardinality defined

Cardinality Follows Business Rules

Many to Many Relationships Reveal New Entities

Display of Relationships Shows a relationship Shows cardinality

Display of Relationships Shows a relationship Names the relationship

Display of Relationships Different standards IDEF1x Barker’s notation UML ons/modeling/idef1x.htmhttp:// ons/modeling/idef1x.htm ng101.htmlhttp:// ng101.html

Documentation of Relationships Name of both entities The verb phrase that describes the semantics of the linkage The cardinality of the linkage All relationships must be documented before proceeding to the physical design of the database