© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.

Slides:



Advertisements
Similar presentations
© 2002 by Prentice Hall 1 SI 654 Database Application Design Winter 2003 Dragomir R. Radev.
Advertisements

IT420: Database Management and Organization
Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
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.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Chapter 3: Modeling Data in the Organization
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Lecture Eleven Entity-Relationship Modelling
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke Database Processing Tenth Edition Chapter 5 Data.
Chapter Five Data Modeling with the Entity-Relationship Model.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Chapter 3: Modeling Data in the Organization
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
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
Entity-Relationship Model
Chapter Five Data Modeling with the Entity-Relationship Model.
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
Chapter 3 © 2005 by Prentice Hall 1 Objectives Definition of terms Definition of terms Importance of data modeling Importance of data modeling Write good.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
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.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
© 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
Chapter 2: Modeling Data in the Organization
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
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.
Entity-Relationship Modeling Based on Chapter 12.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall, modified by Dr. Lyn Mathis 5-1 David M. Kroenke’s, 10 th ed. Chapter.
Data Modeling IST210 Class Lecture.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Chapter 2 © 2013 Pearson Education, Inc. Publishing as Prentice Hall Chapter 2: Modeling Data in the Organization Modern Database Management 11 th Edition.
Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall.
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.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship.
© 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
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
Data Modeling and the Entity-Relationship Model
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 3: Modeling Data in the Organization
Database Processing: David M. Kroenke’s Chapter Five:
Data Modeling and the Entity-Relationship Model
Presentation transcript:

© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model

© 2002 by Prentice Hall 2 Data Modeling Process of creating a logical representation of the structure of the database The most important task in database development

© 2002 by Prentice Hall 3 The Data Model A data model defines and graphically depicts the data structure and relationships among the data A vocabulary and tool-set for creating the user’s data model

© 2002 by Prentice Hall 4 Data Modeling Creation Interviewing users Documenting requirements Building a users data model –Using Entity-Relationship Model Building a database prototype A process of inference –Working backwards

© 2002 by Prentice Hall 5 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

© 2002 by Prentice Hall 6 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

© 2002 by Prentice Hall 7 Common Data Models Entity-Relationship Model Semantic Object Model

© 2002 by Prentice Hall 8 Entity-Relationship Model (E-R Model) An Entity-Relationship Model (E-R Model) consists of: –Entities –Attributes –Identifiers –Relationships

© 2002 by Prentice Hall 9 An Entity An entity is an object that can be identified in the users’ work environment & that users want to track. Entities of a given type are grouped into entity classes. An entity instance is the representation of a particular entity.

© 2002 by Prentice Hall 10 An Entity Example

© 2002 by Prentice Hall 11 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)

© 2002 by Prentice Hall 12 System user System output Inappropriate Entities

© 2002 by Prentice Hall 13 Attributes An attribute describes a characteristic of an entity For example –An entity: Employee –Has attributes: EmployeeName Extension DateOfHire

© 2002 by Prentice Hall 14 Attributes Classifications of attributes: –Simple versus Composite Attribute –Single-Valued versus Multivalued Attribute –Stored versus Derived Attributes –Identifier Attributes

© 2002 by Prentice Hall 15 Identifier An identifier uniquely identifies a row in a table. For an Employee, the SocialSecurityNumber may serve as the Indentifier.

© 2002 by Prentice Hall 16 Characteristics of Identifiers Will not change in value Will not be null

© 2002 by Prentice Hall 17 Relationships A relationship describes how one or more entities are related with each other. Relationship Classes are associations among entity classes Relationship Instances are associations among entity instances Relationships can have attributes

© 2002 by Prentice Hall 18 Degree of Relationship Degree of relationship is number of entity classes in the relationship Binary relationships (Degree 2) are very common Degree 2Degree 3

© 2002 by Prentice Hall 19 Relationship Cardinality Entity-Instance Participation in relationships is shown by –maximum cardinality –minimum cardinality

© 2002 by Prentice Hall 20 Maximum Cardinality The maximum cardinality indicates/depicts the maximum number of instances involved in a relationship. Alternatives include –1:1 (one-to-one) –1:N (one-to-many) –N:M (many-to-many)

© 2002 by Prentice Hall 21 Relationship Examples Showing Maximum Cardinality Alternatives Employee has just 1 Auto, and vice- versa Dorm can have many students, Student can have just 1 dorm Student can be in many clubs, Club can have many students

© 2002 by Prentice Hall 22 Minimum Cardinality The minimum cardinality indicates/depicts whether participation in the relationship is mandatory or optional. Alternatives include –0 (optional) –1 (mandatory)

© 2002 by Prentice Hall 23 A Relationship Example Showing Minimum and Maximum Cardinality Minimum Cardinality: Dormitory must have at least 1 Student Student not required to be in a Dorm Maximum Cardinality: Dormitory can have many Students Student can be in at most 1 Dorm

© 2002 by Prentice Hall 24 A Recursive Relationship A recursive relationship is when an entity has a relationship with itself. Employee Manages 1:N

© 2002 by Prentice Hall 25 Showing Attributes in Entity- Relationship Diagrams Note that relationship Dorm-Occupant has an attribute (Rent).

© 2002 by Prentice Hall 26 Entity-Relationship Diagram (E-R Diagram) An entity-relationship diagram (E-R Diagram) is a graphical representation of the E-R model using a set of ‘somewhat’ standardized conventions

© 2002 by Prentice Hall 27 An Entity-Relationship Diagram (E-R Diagram) Example

© 2002 by Prentice Hall 28 Weak Entity A weak entity is an entity whose instance survival depends (logically) on an associated instance in another entity (strong entity). Rounded Corners signify weak entities.

© 2002 by Prentice Hall 29 ID-dependent Entity Where the identifier of one entity includes the identifier of another.

© 2002 by Prentice Hall 30 Subtype Entities Some entities may have many common attributes and a few unique attributes. The common attributes may be grouped together in a supertype entity and the unique attributes may be grouped together in a subtype entity.

© 2002 by Prentice Hall 31 CLIENT with Subtype Entities Indicates sub- type

© 2002 by Prentice Hall 32 E-R Diagram Computer Assisted Software Engineering (CASE) Tools Several Computer Assisted Software Engineering (CASE) Tools exist to help create E-R Diagrams and the resulting physical database elements. Products include: –IEW –IEF –DEFT –ER-WIN –Visio

© 2002 by Prentice Hall 33 Unified Modeling Language (UML) The Unified Modeling Language (UML) is a set of structures and techniques for modeling and designing object-oriented programs (OOP) and applications. A primary difference between UML & E-R Diagrams is that the UML representation includes information about object constraints and methods

© 2002 by Prentice Hall 34 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model