Data Modeling (Entity Relationship Diagram)

Slides:



Advertisements
Similar presentations
PowerPoint Presentation by Charlie Cook Copyright © 2004 South-Western. All rights reserved. Chapter 3 Database Management Systems Database Management.
Advertisements

Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Fundamentals, Design, and Implementation, 9/e Chapter 3 Entity-Relationship Data Modeling: Process and Examples Instructor: Dragomir R. Radev Fall 2005.
Entity-Relationship Model and Diagrams (continued)
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
Database Design & ER Diagrams
Entity Relationship Diagram Farrokh Alemi Ph.D. Francesco Loaiza, Ph.D. J.D. Vikas Arya.
Entity-Relationship Modeling I The cautious seldom err. Confucius.
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.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
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.
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
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.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
Data Modeling (Entity Relationship Diagram) Farrokh Alemi, Ph.D. Updated by Janusz Wojtusiak (Fall 2009)
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.
Chapter 3: Modeling Data in the Organization
Modeling data in the Organization
DATA MODELING AND DATABASE DESIGN
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
©2005 The McGraw-Hill Companies, All rights reserved McGraw-Hill/Irwin
Conceptual database design ERD’s
Data Modeling Using the ERD
Business System Development
Data Modeling and the Entity-Relationship Model
Semantic Object Modeling (SOM)
Chapter 4: Part B Logical Database Design and the Relational Model
Database Design – Lecture 4
Entity-Relationship Modeling
Mr C Johnston ICT Teacher
Data Modelling Chapter 7
Databases and Information Management
Entity-Relationship Model and Diagrams (continued)
ERD’s REVIEW DBS201.
Normalization of Databases
Entity Relationship Diagrams
Entity Relationship Diagrams
CRC Modeling (class-relationship-collaborator)
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Relational Database Model
Creating Tables & Inserting Values Using SQL
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
SYS466 Domain Classes – Part 1.
Databases and Information Management
Chapter 1: The Database Environment
CHAPTER 1: THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS
Fundamentals of Databases CSU 07203
Normalization Organized by Farrokh Alemi, Ph.D.
Entity-Relationship Diagram (ERD)
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
G061 - Data Dictionary.
CHAPTER 5 THE DATA RESOURCE
DATA MODELING AND DATABASE DESIGN
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Information system analysis and design
Presentation transcript:

Data Modeling (Entity Relationship Diagram) Farrokh Alemi, Ph.D.

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

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

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

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

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