Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.

Slides:



Advertisements
Similar presentations
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
Advertisements

Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 1/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Entity Relationship (ER) Modeling
Database Processing: Fundamentals, Design, and Implementation, 9/e by David M. KroenkeChapter 5/1 Copyright © 2004 Please……. No Food Or Drink in the class.
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.
IT420: Database Management and Organization
Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Fundamentals, Design, and Implementation, 9/e COS 346 Day 8.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Fundamentals, Design, and Implementation, 9/e Chapter 5 Database Design.
Fundamentals, Design, and Implementation, 9/e Chapter 3 Entity-Relationship Data Modeling: Process and Examples Instructor: Dragomir R. Radev Fall 2005.
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.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
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.
Database Systems: Design, Implementation, and Management Tenth Edition
Entity-Relationship Model
Chapter 4 Entity Relationship (E-R) Modeling
Chapter Five Data Modeling with the Entity-Relationship Model.
Entity-Relationship (E-R) Model
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 7.
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
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.
1. 2 Data Modeling 3 Process of creating a logical representation of the structure of the database The most important task in database development E-R.
Chapter 5 Entity–Relationship Modeling
Entity Relationship Diagrams Objectives s Learn the Elements of the E-R model (entities, attributes, and relationships) s Show how to apply the E-R model.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Entity Relationship Modeling
9/10/2012ISC 329 Isabelle Bichindaritz1 Entity Relationship (E-R) Modeling.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 2 This material was developed by Oregon Health & Science.
Entity-Relationship Modeling Based on Chapter 12.
1 5 Modeling Techniques A line manager states, “I know the Chinese say one picture is worth 1,000 words but these diagrams, there are so many that I’d.
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.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Data Modeling IST210 Class Lecture.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
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.
Component 4/Unit 6b Topic II Relational Databases Keys and relationships Data modeling Database acquisition Database Management System (DBMS) Database.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
Database Processing: Fundamentals, Design, and Implementation, 9/e by David M. KroenkeChapter 8/1 Copyright © 2004 Please……. No Food Or Drink in the class.
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
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
Fundamentals, Design, and Implementation, 9/e Appendix B The Semantic Object Model.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Appendix C: E-R Diagrams and The IDEF1X Standard.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
BBY 464 Semantic Information Management (Spring 2016) Data and Metadata Management Yaşar Tonta & Orçun Madran [yasartonta, Hacettepe.
Data Modeling and the Entity-Relationship Model
Requirements Become the E-R Data Model
IDEF1X Standard IDEF1X (Integrated Definition 1, Extended) was announced as a national standard in 1993 It defines entities, relationships, and attributes.
Chapter 4 Entity Relationship (ER) Modeling
Data Modeling and the Entity-Relationship Model
Database Processing: David M. Kroenke’s Chapter Five:
Data Modeling and the Entity-Relationship Model
Presentation transcript:

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class room Cell phones off Pagers on vibrate Phasers on stun

Fundamentals, Design, and Implementation, 9/e Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/3 Copyright © 2004  To understand the ANSI/SPARC Three Schema Model of Schemas  To understand the Extended Entity-Relationship model  To be able to model Strong Entities, Weak Entities, and Subtype Entities in E-R diagrams  To be able to define Identifiers for entities  To be able to model one-to-one, one-to-many, and many-to-many relationships in E-R diagrams  To be able to model cardinalities in E-R Diagrams CHAPTER OBJECTIVES

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/4 Copyright © 2004  To be able to model ID-dependent relationships in E- R diagrams  To be able to model multi-valued attributes in E-R diagrams  To understand the IDEF1X E-R diagrams  To be able to model Non-identifying connection relationships, Identifying connection relationships, Non-Specific Relationships, and Categorization Relationships using IDEF1X E-R model  To understand the use of Domains in the IDEF1X E- R model  To gain a general understanding of the Unified Modeling Language (UML) model CHAPTER OBJECTIVES (Continued)

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/5 Copyright © 2004 Three Schema Model  ANSI/SPARC introduced the three schema model in 1975  It provides a framework describing the role and purpose of data modeling

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/6 Copyright © 2004 Three Schema Model (cont.)  External schema or user view –Representation of how users view the database  Conceptual schema –A logical view of the database containing a description of all the data and relationships –Independent of any particular means of storing the data –One conceptual schema usually contains many different external schemas  Internal schema –A representation of a conceptual schema as physically stored on a particular product –A conceptual schema can be represented by many different internal schemas

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/7 Copyright © 2004 E-R Model  Entity-Relationship model is a set of concepts and graphical symbols that can be used to create conceptual schemas  Four versions –Original E-R model by Peter Chen (1976) –Extended E-R model: the most widely used model –Information Engineering (IE) by James Martin (1990) –IDEF1X national standard by the National Institute of Standards and Technology –Unified Modeling Language (UML) supporting object-oriented methodology

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/8 Copyright © 2004 The Extended E-R Model

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/9 Copyright © 2004 Example: E-R Diagram

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/10 Copyright © 2004 Entities  Something that can be identified and the users want to track –Entity class is a collection of entities described by the entity format in that class –Entity instance is the representation of a particular entity  There are usually many instances of an entity in an entity class

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/11 Copyright © 2004 Example: Entity

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/12 Copyright © 2004 Attributes  Description of the entity’s characteristics  All instances of a given entity class have the same attributes –Composite attribute: attribute consisting of the group of attributes –Multi-value attributes: attribute with more than one possible value

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/13 Copyright © 2004 Identifiers  Identifiers are attributes that name, or identify, entity instances  The identifier of an entity instance consists of one or more of the entity’s attributes  An identifier may be either unique or non-unique –Unique identifier: the value identifies one and only one entity instance –Non-unique identifier: the value identifies a set of instances  Composite identifiers: Identifiers that consist of two or more attributes

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/14 Copyright © 2004 Relationships  Entities can be associated with one another in relationships –Relationship classes: associations among entity classes –Relationship instances: associations among entity instances  Relationships can have attributes  A relationship class can involve many entity classes  Degree of the relationship is the number of entity classes in the relationship

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/15 Copyright © 2004 Example: Degree of the relationship  Relationships of degree 2 are very common and are often referred to by the term binary relationships

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/16 Copyright © 2004 Binary Relationships  1:1  1:N  N:M

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/17 Copyright © 2004 Recursive Relationship  Recursive relationships are relationships among entities of a single class

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/18 Copyright © 2004 Cardinality  Maximum cardinality indicates the maximum number of entities that can be involved in a relationship  Minimum cardinality indicate that there may or may not be an entity in a relationship

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/19 Copyright © 2004 Weak Entities  Weak entities are those that must logically depend on another entity  Weak entities cannot exist in the database unless another type of entity (strong entity) also exists in the database –ID-dependent entity: the identifier of one entity includes the identifier of another entity

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/20 Copyright © 2004 Example: Weak Entities

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/21 Copyright © 2004 Example: Weak Entities

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/22 Copyright © 2004 Subtype Entities  Subtype entity is an entity that represents a special case of another entity, called supertype  Sometimes called an IS-A relationship  Entities with an IS-A relationship should have the same identifier

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/23 Copyright © 2004 Example: Subtype Entities

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/24 Copyright © 2004 Example: Subtype Entities

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/25 Copyright © 2004 Example: Subtype Entities

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/26 Copyright © 2004 IDEF1X Standard  IDEF1X (Integrated Definition 1, Extended) was announced as a national standard in 1993  It defines entities, relationships, and attributes in more specific meanings  It changed some of the E-R graphical symbols  It includes definition of domains, a component not present in the extended E-R model  Four Relationship Types –Non-Identifying Connection Relationships –Identifying Connection Relationships –Non-Specific Relationships –Categorization Relationships  Products supporting IDEF1X: ERWin, Visio, Design/2000

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/27 Copyright © 2004 Example: IDEF1X

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/28 Copyright © 2004 Example: IDEF1X

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/29 Copyright © 2004 Example: IDEF1X

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/30 Copyright © 2004 Non-Identifying Connection Relationships  Represent relationship with a dashed line from a parent to a child entity  Default cardinality is 1:N with a mandatory parent and an optional child –1 indicates exactly one child is required –Z indicates zero or one children

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/31 Copyright © 2004 Non-Identifying Connection Relationships

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/32 Copyright © 2004 Identifying Connection Relationships  Same as ID-dependent relationships in the extended E-R model  Parent’s identifier is always part of the child’s identifier  Relationship are indicated with solid lines, child entities are shown with rounded corners (ID-dependent entities only)

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/33 Copyright © 2004 Identifying Connection Relationships

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/34 Copyright © 2004 Non-Specific Relationships  Simply a many-to-many relationship  Relationships are shown with a filled-in circle on each end of the solid relationship line  Cannot set minimum cardinalities of a non-specific relationship

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/35 Copyright © 2004 Non-Specific Relationships

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/36 Copyright © 2004 Categorization Relationships  A relationship between a generic entity and another entity called a category entity  Called specialization of generalization/subtype relationships (IS-A relationships) in the extended E-R model  Within category clusters, category entities are mutually exclusive  Two types of category clusters: –Complete: every possible type of category for the cluster is shown (denoted by two horizontal lines with a gap in-between) –Incomplete: at least one category is missing (denoted by placing the category cluster circle on top of a single line, no gap between horizontal lines)

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/37 Copyright © 2004 Example: Categorization Relationships

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/38 Copyright © 2004 Example: IDEF1X Model With Relationship Names

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/39 Copyright © 2004 Example: IDEF1X Model With Relationship Names

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/40 Copyright © 2004 Domains  A domain is a named set of values that an attribute can have  It can be a specific list of values or a pre-defined data characteristic, e.g. character string of length less than 75  Domains reduce ambiguity in data modeling and are practically useful  Two types of domains –Base domain: have a data type and possibly a value list or range definition –Type domain: a subset of a base domain or a subset of another type domain

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/41 Copyright © 2004 Example: Domain Hierarchy

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/42 Copyright © 2004 UML-style E-R Diagrams  The Unified Modeling Language (UML) is a set of structures and techniques for modeling and designing object-oriented programs (OOP) and applications  The concept of UML entities, relationships, and attributes are very similar to those of the extended E-R model  Several OOP constructs are added: – indicates that the entity class exist in the database –UML allows entity class attributes –UML supports visibility of attributes and methods –UML entities specify constraints and methods in the third segment of the entity classes  Currently, the object-oriented notation is of limited practical value

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/43 Copyright © 2004 Example: UML

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/44 Copyright © 2004 Example: UML

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/45 Copyright © 2004 Example: UML

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/46 Copyright © 2004 UML: Weak Entities

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/47 Copyright © 2004 UML: Subtypes

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/48 Copyright © 2004 Summary  Users communicate with database developers in terms of external schemas  The entity-relationship model was proposed by Peter Chen in 1975  The basic elements of all versions of the E- R model are: –Entities –Attributes, and –Relationships

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/49 Copyright © 2004 Summary  The 3 types of binary relationships are 1:1, 1:N, and N:M  A weak entity can not exist by its self

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/50 Copyright © 2004 Reminder DO NOT FORGET TO SIGN THE ATTENDANCE SHEET BEFORE YOU LEAVE TONIGHT