Entity-Relation Modeling Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.

Slides:



Advertisements
Similar presentations
Entity Relationship (ER) Modeling
Advertisements

Entity Relationship (ER) Modeling
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Entity Relationship (ER) Modeling
Systems Development Life Cycle
Data Modeling is an Analysis Activity
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
Systems Analysis Requirements structuring Process Modeling Logic Modeling Data Modeling  Represents the contents and structure of the DFD’s data flows.
Chapter 3: Modeling Data in the Organization
Entity Relationship Diagrams
Chapter 3: Modeling Data in the Organization
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 4 Entity Relationship (E-R) Modeling
Chapter 3 © 2005 by Prentice Hall 1 Objectives Definition of terms Definition of terms Importance of data modeling Importance of data modeling Write good.
Entity-Relationship Modeling I The cautious seldom err. Confucius.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 7th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
1 © Prentice Hall, 2002 CMIS564: E/R Modeling Dr. Bordoloi Based on Chapter 3; Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Data Modeling ERM ERD.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Chapter 5 Entity–Relationship Modeling
Chapter 2: Modeling Data in the Organization
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Initial Design of Entity Types for the COMPANY Database Schema Based on the requirements, we can identify four initial entity types in the COMPANY database:
Chapter 11 & 12 Entity-Relationship (E-R) Model Characteristics of E-R Model Components of E-R Model Example of E-R Model Enhanced E-R Model.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Chapter 2 © 2013 Pearson Education, Inc. Publishing as Prentice Hall Chapter 2: Modeling Data in the Organization Modern Database Management 11 th Edition.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
Databases Illuminated Chapter 3 The Entity Relationship Model.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
Entity Relationship Modeling
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 2: MODELING DATA.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Pree Thiengburanathum, CAMT, Chiang Mai University 1 Database System Modeling Data in the Organization October 31, 2009 Software Park, Bangkok Thailand.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
IS 4420 Database Fundamentals Chapter 3: Modeling Data in the Organization Leon Chen.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Lecture 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
Chapter 3: Modeling Data in the Organization
Modeling data in the Organization
TMC2034 Database Concept and Design
Tables and Their Characteristics
Database Design – Lecture 4
Overview of Entity‐Relationship Model
Chapter 4 Entity Relationship (ER) Modeling
Entity-Relation Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 3: Modeling Data in the Organization
Chapter 4 Entity Relationship (ER) Modeling
Entity-Relationship Diagram (ERD)
ER MODELING Instructor: SAMIA ARSHAD
Presentation transcript:

Entity-Relation Modeling Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International University of Japan

Outline  Business Rules  Entity-Relation Model  Entity of E-R Model  Attribute of E-R Model  Relationship of E-R Model  Degree of Relationship  Cardinality of a Relationship  CASE Tools 2

Business Rules  “A statement that defines or constrains some aspect of the business”  “Govern how data are handled and stored”  “Derived from policies, procedures, events, functions, and other business objects”  “Documenting rules and policies of an organization that govern data is exactly what data modeling is all about.” 3

Entity-Relationship Model  A database modeling method that produces “a detailed, logical representation of the data”  Produces a conceptual schema in a relational database  Introduced by Peter Chen in 1976  Represented by entity-relationship diagram (ERD) 4

Entity-Relationship Diagram  E-R diagram (ERD) represents the abstract and conceptual relationships in ERM.  Components of ERD  Entity with attributes  Relationship among entities  Cardinality 5

Entity of E-R Model 1  Represented by a rectangle or box in ERD  Name in uppercase  Name as singular noun form  Includes a set of attributes  Entity type versus entity instance 6

Entity of E-R Model 2  Entity type is “ a collection of entities that share common properties ”  Entity instance is “ a single occurrence of an entity type ”  Strong (unique/independent) entity type versus weak (dependent) entity type 7

Entity of E-R Model 3  Associative entity  Associate the instances of entity types  Contains attributes that are peculiar to the relationship among the entity instances.  Relationship in a rectangular with rounded corners or dashed line 8

Attribute of E-R Model 1  A property of an entity type  Singular none or none phrase  Sentence-cased  Required (must have values) in boldface v.s. optional attribute (may not) 9

Attribute of E-R Model 2  Simple (atomic) attribute v. s. composite attribute (having meaningful components parts such as last name and first name) in (…)  Single-valued v.s. multi-valued attribute in {…}  Stored v.s. derived attribute (e.g., age calculated from date of birth) in […] 10

Relationship of E-R Model 1  Connectivity (association) representing an interaction among instances of entity types  Relationship type is “a meaningful association among entity types”  Relationship instance is “an association among entity instances 11

Relationship of E-R Model 2  Represented by a diamond in the original Chen notation and by a connecting line  Connectivity label (name) is a verb phrase in sentence-case  Either an active or passive form (e.g., manages or managed by) 12

Degree of a Relationship 1  The number of entity types that participate in a relationship.  Unary (recursive) relationship is a relationship between the instances of one entity type  Examples are marriage and supervision in an organization 13

Degree of a Relationship 2  Binary relationship is a relationship between instances of two entity types.  Binary relationship is most common  Ternary relationship is a simultaneous relationship among instances of three entity types. 14

Cardinality (Constraint) 1  “ The number of instances of entity B that can (or must) be associated with each instance of entity A ”  Cardinality of a relationship expresses the minimum and maximum number of entity occurrences associated with one occurrence of the related entity. 16

Cardinality (Constraint) 2  Minimum cardinality: minimum number of instances of entity B that may be associated with each instance of entity A  Maximum cardinality: maximum number of instances of entity B that may be associated with each instance of entity A  Zero (0) cardinality implies “ optional, ” cardinality one (1) means “ mandatory ” 17

Cardinality (Constraint) 3  (0,1) zero minimum or one maximum; optional  (1,1) one and only one; mandatory  (0, N) one or many; optional  (1,N) one or many; mandatory  Symbols are used instead of numbers in ERD 18

19

20

Normalization  Normalization simplifies a database to make it compliant with the concept of the normal form.  Eliminate duplicate and/or abnormal records 22

CASE Tools  CASE tools are very useful in system design and development stage, facilitating communications among stakeholders.  Professional CASE tools, CaseStudio, Microsoft Visio (Professional Edition)  MySql Workbench  h/ 23

An Example of CASE Tools  CASE Studio II and MySql Workbench  GUI Provides flexible ways to modify.  Define the database structure that matches with the E-R diagram  Generate SQL commands to create corresponding tables based on E-R diagram designed. 24

E-R Diagram (CaseStudio 2)

26