Carnegie Mellon University ©2006 - 2011 Robert T. Monroe 70-451 Management Information Systems Data Modeling 70-451 Management Information Systems Robert.

Slides:



Advertisements
Similar presentations
Entity-Relationship (ER) Modeling
Advertisements

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.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Database Design & Mapping
System Analysis - Data Modeling
Chapter 3: Modeling Data in the Organization
Entity Relationship Diagrams
Chapter 3: Modeling Data in the Organization
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
Chapter 8 Structuring System Data Requirements
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 3 © 2005 by Prentice Hall 1 Objectives Definition of terms Definition of terms Importance of data modeling Importance of data modeling Write good.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
© 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.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization Modern Database Management 10 th Edition Jeffrey.
Chapter 3: Modeling Data in the Organization
Chapter 3: Modeling Data in the Organization
Data Modeling ERM ERD.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Chapter 5 Entity–Relationship Modeling
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Essentials of Systems Analysis and Design Fourth Edition Joseph S. Valacich Joey F.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Chapter 2: Modeling Data in the Organization
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Conceptual Data Modeling, Entity Relationship Diagrams
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Entity-Relationship Modeling Based on Chapter 12.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Modeling Data in the Organization Chapters 3 + 4: Modern Database Management 9 th Edition.
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.
Carnegie Mellon University © Robert T. Monroe Management Information Systems Data Modeling II – Relationships Management Information.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Entity Relationship Modeling
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Data Modeling Using the Entity-Relationship (ER) Data Model.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
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.
Chapter 2: Modeling Data in the Organization
Chapter 3 1 Chapter 3: Modeling Data in the Organization.
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.
Overview of Entity‐Relationship Model
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 3: Modeling Data in the Organization
Presentation transcript:

Carnegie Mellon University © Robert T. Monroe Management Information Systems Data Modeling Management Information Systems Robert Monroe October 23, 2011

Carnegie Mellon University © Robert T. Monroe Management Information Systems Quiz

Carnegie Mellon University © Robert T. Monroe Management Information Systems Goals For Today By the end of today's class you should be able to: –Explain the difference between an Entity, an Attribute, and a Relationship in an Entity-Relationship Model –Model basic data entities in an organization using Entity- Relationship Diagrams (ERD's) –Assign attributes to those entities –Identify basic relationships between entities

Carnegie Mellon University © Robert T. Monroe Management Information Systems What Is Data Modeling? Data modeling describes a set of tools and techniques that IS professionals use to describe, define, structure, organize, and manage an organization’s data We will be looking at one specific (but very common) data modeling technique called Entity-Relationship Modeling

Carnegie Mellon University © Robert T. Monroe Management Information Systems Data Modeling In Context Data modeling is usually done during the design phase of an individual IS project Effective data modeling requires the interaction of business analysts and IS professionals Data modeling is done independent of the specific database implementation Enterprise data modeling can be done for an entire organization’s data needs, across applications, projects, and databases. This is known as Enterprise Data Modeling Maintain & Support Impl.Test Develop Design AnalyzePlan

Carnegie Mellon University © Robert T. Monroe Management Information Systems Why Do Data Modeling? Data tends to outlive both IS applications and even business processes –Don’t reinvent what you have already built! –Data integration is the most common way to integrate IS applications – properly defined data models make this integration much, much easier and less error-prone Getting the data structures and relationships right makes it much, much easier to build an efficient and effective information system Data modeling techniques such as E-R Diagrams help IS professionals describe their data models precisely, unambiguously, and with a shared notation

Carnegie Mellon University © Robert T. Monroe Management Information Systems Entity-Relationship (ER) Data Modeling

Carnegie Mellon University © Robert T. Monroe Management Information Systems ER Modeling Core Elements Entity A person, place, object, event, concept in the user environment about which the organization wishes to maintain data. Attribute A property or characteristic of an entity that is of interest to the organization. Relationship A meaningful association between, or among, entities. Entity Attribute … PersonCar owns Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems Sample E-R Diagram Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems E-R Diagram Notation (Figure 3-2 of text) Entity symbols A special entity that is also a relationship Relationship symbols Attribute symbols Relationship cardinalities specify how many of each entity type is allowed Relationship degrees specify number of entity types involved Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems Identifying Entities An entity should be: –An object that will have many instances in the database –An object that will be composed of multiple attributes –An object that we are trying to model An entity should NOT be: –A user of the database system –An output of the database system (e.g. a report)

Carnegie Mellon University © Robert T. Monroe Management Information Systems Example: Picking Appropriate Entities Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems Naming Entities Guidelines for naming entity types: –Use singular nouns –Be concise –Abbreviations are ok, as long as they are standardized –Event entity types should be named for the result of the event –Be consistent Good ExamplesPoor Examples Student Customer Flight Employee Invoice FormerStudentFromOman Customers ClientsWhoCameToBigEvent ObscureRecmdForFrtherAction

Carnegie Mellon University © Robert T. Monroe Management Information Systems In Class Exercise (Part I): Find the Entities Identify the entities that appear on the report card Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems Attributes A property or characteristic of an entity type Classifications of attributes: –Identifier Attributes –Required versus Optional –Simple versus Composite –Single-Valued versus Multivalued Attribute –Stored versus Derived Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems Example: Entity With Simple Attributes Employee FirstName LastName DateOfBirth DateHired

Carnegie Mellon University © Robert T. Monroe Management Information Systems Example: Entity With Composite Attribute Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems Identifiers (Keys) An attribute (or combination of attributes) that uniquely identifies individual instances of an entity type Can be simple or composite Characteristics of identifiers: –Will not change in value –Will not be null –No intelligent identifiers e.g. containing locations or people that might change –Substitute new, simple keys for long, composite keys

Carnegie Mellon University © Robert T. Monroe Management Information Systems Identifier Examples: Simple and Composite Simple identifiers: –Single attribute uniquely identifies each entity instance –Identifier attribute underlined Composite identifiers: –Multiple attributes required to uniquely identifies each entity instance –Identifier attribute underlined and composite attributes listed below in (parentheses) Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems Derived Attribute Multivalued Attribute Example: Entity With Multivalued And Derived Attributes Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems Time-stamping is commonly done with a multi-valued and composite attribute Example: A Multivalued and Composite Attribute Product Product_ID {Price_History (Effective_Date, Price)}

Carnegie Mellon University © Robert T. Monroe Management Information Systems Naming Attributes Guidelines for naming attributes: –Use singular nouns or noun phrases –Names should be unique (at least within an entity type) –Be concise –Follow a standard format –Similar attributes should use the same qualifiers and classes Good ExamplesPoor Examples Date StudentName NumberEnrolled Birth_Date CourseID Employee_ID TheDayThatThisPersonEnrolled Student_Names ClientLastName NumEnrollInSpecificClass

Carnegie Mellon University © Robert T. Monroe Management Information Systems In Class Exercise (Part II): Find the Attributes Form teams of 2-3 students Identify the attributes of each previously identified entity Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems Relationships A relationship defines a meaningful association between, or among, entities –Modeled as a line drawn between entities Relationships can have attributes –These describe features pertaining to the association between the entities in the relationship. Two entities can have more than one type of relationship between them (multiple relationships)

Carnegie Mellon University © Robert T. Monroe Management Information Systems Degree of Relationship Defines the number of entity types that participate in it Unary Relationship –One entity type related to itself Binary Relationship –Two entity types related to each other Ternary Relationship –Three entity types related to each other It is possible, but unusual, to have relationship types of larger than 3 entities

Carnegie Mellon University © Robert T. Monroe Management Information Systems Defines the number of entity instances that participate in it One-to-One –Each entity in the relationship will have exactly one related entity One-to-Many –An entity on one side of the relationship can have many related entities, but an entity on the other side will have a maximum of one related entity Many-to-Many –Entities on both sides of the relationship can have many related entities on the other side Cardinality of Relationships

Carnegie Mellon University © Robert T. Monroe Management Information Systems Cardinality Constraints The number of instances of one entity that can or must be associated with each instance of another entity –Mandatory one –Mandatory many –Optional one –Optional many

Carnegie Mellon University © Robert T. Monroe Management Information Systems Example: Unary Degree Relationship Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems Example: Binary Relationships Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems Example: Binary Relationship With An Attribute The Date_Completed attribute pertains specifically to the employee’s completion of a course It is an attribute of the relationship, not either entity in isolation Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems Example: Ternary Relationship With Attributes Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems E-R Diagram Notation Entity symbols A special entity that is also a relationship Relationship symbols Attribute symbols Relationship cardinalities specify how many of each entity type is allowed Relationship degrees specify number of entity types involved Source: [HPM09]

Carnegie Mellon University © Robert T. Monroe Management Information Systems In-Class Exercise (Part III) – Create E-R Diagram Produce an E-R diagram capturing –Entities –Attributes –Relationships Source: [HPM05]

Carnegie Mellon University © Robert T. Monroe Management Information Systems References [HPM09] Jeffrey Hoffer, Mary Prescott, Fred McFadden, Modern Database Management, 9 th Ed., Pearson - Prentice Hall, 2009, ISBN: