3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.

Slides:



Advertisements
Similar presentations
the Entity-Relationship (ER) Model
Advertisements

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.
Modeling the Data: Conceptual and Logical Data Modeling
Entity Relationship Model
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Entity-Relation Modeling Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
Database Design & Mapping
System Analysis - Data Modeling
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
Conceptual Data Modeling, E-R Diagrams. Outline  Purpose and importance of conceptual data modeling  Entity-Relationship Model Entity  Attributes Relationships.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
DATABASE APPLICATION DEVELOPMENT SAK 3408
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
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 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 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.
© 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
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.
Chapter 2: Modeling Data in the Organization
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Conceptual Data Modeling, Entity Relationship Diagrams
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 7 Structuring System Requirements: Conceptual Data Modeling 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.
© 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.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
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.
© 2005 by Prentice Hall 1 The Database Development Process Dr. Emad M. Alsukhni The Database Development Process Dr. Emad M. Alsukhni Modern Database Management.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Carnegie Mellon University © Robert T. Monroe Management Information Systems Data Modeling Management Information Systems Robert.
Databases Illuminated Chapter 3 The Entity Relationship Model.
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.
Entity-Relationship Modeling. 2 Entity Type u Entity type –Group of objects with same properties, identified by enterprise as having an independent existence.
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.
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.
Chapter 3: Modeling Data in the Organization
Business System Development
Modelling Data in Organisation Entity-Relationship Model
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:

3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling

3.2 CSIS 3310 SDLC Revisited – Data Modeling is an Analysis Activity Project Identification and Selection Project Initiation and Planning Analysis Physical Design Implementation Maintenance Logical Design Purpose –thorough analysis Deliverable – functional system specifications Database activity – conceptual data modeling communication between DB designer & user

3.3 CSIS 3310 Business Rules Statements that define or constrain some aspect of the business Assert business structure Control/influence business behavior Expressed in terms familiar to end users Automated through DBMS software

3.4 CSIS 3310 A Good Business Rule is: Declarative – what, not how Precise – clear, agreed-upon meaning Atomic – one statement Consistent – internally and externally Expressible – structured, natural language Distinct – non-redundant Business-oriented – understood by business people

3.5 CSIS 3310 Sample E-R Diagram

3.6 CSIS 3310 E-R Model Constructs Entity –Person: customer, vendor, supplier –Place: location, city, region, territory –Object: vehicle, monitor, part –Event: order, registration, renewal –Concept: expense, flight, project Entity Type versus Entity Instance Entity Type versus System Input, Output, or User

3.7 CSIS 3310 Entity symbols Relationship symbols Attribute symbols A special entity that is also a relationship Basic E-R Notation

3.8 CSIS 3310 What Should an Entity Be? 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 SHOULD NOT BE: –A user of the database system –An output of the database system (e.g. a report)

3.9 CSIS 3310 System user System output Appropriate entities Inappropriate entities

3.10 CSIS 3310 Attributes Attribute - property or characteristic of an entity type Classifications of attributes: –Simple versus Composite Attribute –Single-Valued versus Multivalued Attribute –Derived Attributes –Identifier Attributes

3.11 CSIS 3310 A composite attribute

3.12 CSIS 3310 Entity with a multivalued attribute (Skill) and derived attribute (Years_Employed) Multivalued: an employee can have more than one skill Derived from date employed and current date

3.13 CSIS 3310 E-R Model Constructs Identifier or Key –An attribute (or combination of attributes) that uniquely identifies individual instances of an entity type. Simple Key versus Composite Key Candidate Key –an attribute that could be a key…satisfies the requirements for being a key

3.14 CSIS 3310 Simple key attribute The key is underlined

3.15 CSIS 3310 Composite key attribute The key is composed of two subparts

3.16 CSIS 3310 Criteria for Selecting Identifiers (Keys) 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.

3.17 CSIS 3310 Strong vs. Weak Entities, and Identifying Relationships Strong entities –exist independently of other types of entities –has its own unique identifier –represented with single-line rectangle Weak entity –dependent on a strong entity…cannot exist on its own –Does not have a unique identifier –represented with double-line rectangle Identifying relationship –links strong entities to weak entities –represented with double line diamond

3.18 CSIS 3310 Example of a weak entity

3.19 CSIS 3310 Basic E-R Notation

3.20 CSIS 3310 Relationships Relationship Types vs. Relationship Instances –The relationship type is modeled as the diamond and lines between entity types 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)

3.21 CSIS 3310 Relationship type (Completes)

3.22 CSIS 3310 Relationship instances

3.23 CSIS 3310 Attribute on a relationship

3.24 CSIS 3310 Associative Entity Its an Entity – It’s a Relationship When should a relationship be an Associative Entity? –All relationships involved are “many” –Associative entity has independent meaning –Has one or more non-key attributes –Independent relationships

3.25 CSIS 3310 An associative entity (CERTIFICATE)

3.26 CSIS 3310 Degree of Relationships Degree of a Relationship - number of entity types that participate in it. –Unary (or Recursive) Relationship –Binary –Ternary

3.27 CSIS 3310 One entity related to another of the same entity type Entities of two different types related to each other Entities of three different types related to each other Degree of relationships

3.28 CSIS 3310 Binary relationships

3.29 CSIS 3310 Unary relationships

3.30 CSIS 3310 Represents a bill-of -materials structure This has a many-to-many relationship A unary relationship with an attribute

3.31 CSIS 3310 An Associative Entity Bill of Materials Structure

3.32 CSIS 3310 Ternary relationships

3.33 CSIS 3310 A ternary relationship as an associative entity

3.34 CSIS 3310 Multivalued attribute vs. relationship. Alternative approaches

3.35 CSIS 3310 Cardinality of Relationships 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

3.36 CSIS 3310 Cardinality Constraints The number of instances of one entity that can or must be associated with each instance of another entity –Minimum Cardinality If zero, then optionalIf zero, then optional If one or more, then mandatoryIf one or more, then mandatory –Maximum Cardinality –Mandatory One - when min & max both = 1

3.37 CSIS 3310 Cardinality notation

3.38 CSIS 3310 Mandatory cardinalities Cardinality constraints

3.39 CSIS 3310 One optional, one mandatory cardinality Cardinality constraints

3.40 CSIS 3310 Optional cardinalities with unary degree, one-to-one relationship

3.41 CSIS 3310 Cardinality constraints in a ternary relationship

3.42 CSIS 3310 Modeling Time-Dependent Data Time Stamps

3.43 CSIS 3310 Multiple Relationships More than one relationship between the same entity types

3.44 CSIS 3310 Multiple relationship with fixed cardinality constraint

3.45 CSIS 3310 E-R Diagram for Pine Valley

3.46 CSIS 3310 Pine Valley Furniture User View 1: Orders for customers

3.47 CSIS 3310 Pine Valley Furniture User View 2: Orders for products

3.48 CSIS 3310 Synonyms you should know… Entity = relation = table Attribute = column Instance = row rows columns table