Chapter 2 Entity-Relationship Data Modeling: Tools and...

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

Transcript of Chapter 2 Entity-Relationship Data Modeling: Tools and...

Page 1: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Fundamentals, Design, and Implementation, 9/e

Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques

Page 2: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/2Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Three Schema Model

ANSI/SPARC introduced the three schema model in 1975It provides a framework describing the role and purpose of data modeling

Page 3: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/3Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

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 schemasInternal 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

Page 4: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/4Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

E-R Model

Entity-Relationship model is a set of concepts and graphical symbols that can be used to create conceptual schemasFour 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

Page 5: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/5Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

The Extended E-R Model

Page 6: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/6Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: E-R Diagram

Page 7: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/7Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

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

Page 8: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/8Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: Entity

Page 9: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/9Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Attributes

Description of the entity’s characteristicsAll 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

Page 10: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/10Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Identifiers

Identifiers are attributes that name, or identify, entity instancesThe identifier of an entity instance consists of one or more of the entity’s attributesAn 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

Page 11: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/11Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

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 attributesA relationship class can involve many entity classesDegree of the relationship is the number of entity classes in the relationship

Page 12: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/12Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: Degree of the relationship

Relationships of degree 2 are very common and are often referred to by the term binary relationships

Page 13: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/13Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Binary Relationships

1:11:NN:M

Page 14: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/14Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Recursive Relationship

Recursive relationshipsare relationships among entities of a single class

Page 15: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/15Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Cardinality

Maximum cardinality indicates the maximum number of entities that can be involved in a relationshipMinimum cardinality indicate that there may or may not be an entity in a relationship

Page 16: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/16Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Weak Entities

Weak entities are those that must logically depend on another entityWeak 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

Page 17: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/17Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: Weak Entities

Page 18: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/18Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: Weak Entities

Page 19: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/19Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Subtype Entities

Subtype entity is an entity that represents a special case of another entity, called supertypeSometimes called an IS-A relationshipEntities with an IS-A relationship should have the same identifier

Page 20: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/20Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: Subtype Entities

Page 21: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/21Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: Subtype Entities

Page 22: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/22Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: Subtype Entities

Page 23: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/23Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

IDEF1X Standard

IDEF1X (Integrated Definition 1, Extended) was announced as a national standard in 1993It defines entities, relationships, and attributes in more specific meaningsIt changed some of the E-R graphical symbolsIt includes definition of domains, a component not present in the extended E-R modelFour Relationship Types– Non-Identifying Connection Relationships– Identifying Connection Relationships– Non-Specific Relationships– Categorization Relationships

Products supporting IDEF1X: ERWin, Visio, Design/2000

Page 24: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/24Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: IDEF1X

Page 25: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/25Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: IDEF1X

Page 26: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/26Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: IDEF1X

Page 27: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/27Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Non-Identifying Connection Relationships

Represent relationship with a dashed line from a parent to a child entityDefault 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– P indicates one or more child entities are required– ◊

indicates the parent is optional

Page 28: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/28Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Non-Identifying Connection Relationships

Page 29: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/29Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Identifying Connection Relationships

Same as ID-dependent relationships in the extended E-R modelParent’s identifier is always part of the child’s identifierRelationship are indicated with solid lines, child entities are shown with rounded corners (ID-dependent entities only)

Page 30: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/30Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Identifying Connection Relationships

Page 31: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/31Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Non-Specific Relationships

Simply a many-to-many relationship Relationships are shown with a filled-in circle on each end of the solid relationship lineCannot set minimum cardinalities of a non-specific relationship

Page 32: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/32Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Non-Specific Relationships

Page 33: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/33Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Categorization Relationships

A relationship between a generic entity and another entity called a category entityCalled specialization of generalization/subtype relationships (IS-A relationships) in the extended E-R modelWithin category clusters, category entities are mutually exclusiveTwo 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)

Page 34: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/34Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: Categorization Relationships

Page 35: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/35Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: IDEF1X Model With Relationship Names

Presenter�
Presentation Notes�
Normally, a name consists of a verb or verb phrase expressed from the standpoint of the parent in the relationship, followed by a slash, and followed by the verb phrase expressed from the standpoint of the child. �
Page 36: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/36Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: IDEF1X Model With Relationship Names

Presenter�
Presentation Notes�
Normally, a name consists of a verb or verb phrase expressed from the standpoint of the parent in the relationship, followed by a slash, and followed by the verb phrase expressed from the standpoint of the child. �
Page 37: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/37Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Domains

A domain is a named set of values that an attribute can haveIt can be a specific list of values or a pre-defined data characteristic, e.g. character string of length less than 75Domains reduce ambiguity in data modeling and are practically usefulTwo 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

Page 38: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/38Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: Domain Hierarchy

Page 39: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/39Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: IDEF1X

Page 40: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/40Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

“Company” ER Schema Diagram

Elmasri/Navathe, Fundamentals of Database Systems, Fourth Edition

Page 41: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/41Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Summary of ER Diagram Notation for ER Schemas

Elmasri/Navathe, Fundamentals of Database Systems, Fourth Edition

Page 42: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/42Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

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 applicationsThe concept of UML entities, relationships, and attributes are very similar to those of the extended E-R modelSeveral OOP constructs are added:– <Persistent> 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 classesCurrently, the object-oriented notation is of limited practical value

Page 43: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/43Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: UML

Presenter�
Presentation Notes�
Each entity is represented by an entity class, which is shown as a rectangle with three segments. The top segment shows the name of the entity and other data that we will discuss. The second segment lists the names of the attributes in the entity, and the third documents constraints and lists methods (program procedures) that belong to the entity. Relationships are shown with a line between two entities. Cardinalities are represented in the format x..y, where x is the minimum required and y is the maximum allowed. �
Page 44: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/44Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: UML

Presenter�
Presentation Notes�
Each entity is represented by an entity class, which is shown as a rectangle with three segments. The top segment shows the name of the entity and other data that we will discuss. The second segment lists the names of the attributes in the entity, and the third documents constraints and lists methods (program procedures) that belong to the entity. Relationships are shown with a line between two entities. Cardinalities are represented in the format x..y, where x is the minimum required and y is the maximum allowed. �
Page 45: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/45Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

Example: UML

Presenter�
Presentation Notes�
Each entity is represented by an entity class, which is shown as a rectangle with three segments. The top segment shows the name of the entity and other data that we will discuss. The second segment lists the names of the attributes in the entity, and the third documents constraints and lists methods (program procedures) that belong to the entity. Relationships are shown with a line between two entities. Cardinalities are represented in the format x..y, where x is the minimum required and y is the maximum allowed. �
Page 46: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/46Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

UML: Weak Entities

Presenter�
Presentation Notes�
A filled-in diamond is placed on the line to the parent of the weak entity (the entity on which the weak entity depends). Figure 2-28(a) shows a weak entity that is not an ID-dependent entity. It is denoted by the expression <non-identifying> on the PATIENT-PRESCRIPTION relationship. Figure 2-28(b) shows a weak entity that is ID-dependent. It is denoted with the label <identifying>. �
Page 47: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Chapter 2/47Copyright © 2004 Database Processing: Fundamentals, Design and Implementation, 9/e

by David M. Kroenke

UML: Subtypes

Presenter�
Presentation Notes�
A filled-in diamond is placed on the line to the parent of the weak entity (the entity on which the weak entity depends). Figure 2-28(a) shows a weak entity that is not an ID-dependent entity. It is denoted by the expression <non-identifying> on the PATIENT-PRESCRIPTION relationship. Figure 2-28(b) shows a weak entity that is ID-dependent. It is denoted with the label <identifying>. �
Page 48: Chapter 2 Entity-Relationship Data Modeling: Tools and ...yunus.hacettepe.edu.tr/~tonta/courses/fall2008/bby309/ch02_Kroenke9.pdf · Fundamentals, Design, and Implementation, 9/e

Fundamentals, Design, and Implementation, 9/e

Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques