chapter 12

22
Chapter 12 Enhanced Entity-Relationship modeling Transparencies

Upload: khalil

Post on 25-Feb-2016

50 views

Category:

Documents


3 download

DESCRIPTION

Chapter 12. Enhanced Entity-Relationship modeling Transparencies. Chapter 12 - Objectives. The main concepts associated with the Enhanced Entity-Relationship (EER) model called specialization / generalization and categorization. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Chapter 12

Chapter 12

Enhanced Entity-Relationship modeling

Transparencies

Page 2: Chapter 12

Chapter 12 - Objectives The main concepts associated with

the Enhanced Entity-Relationship (EER) model called specialization / generalization and categorization.

A diagrammatic technique for displaying specialization / generalization and categorization in an EER model.

Page 3: Chapter 12

48

The Enhanced Entity-Relationship Model

Since the 1980s there has been an increase in the emergence of new database applications with more demanding requirements.

Basic concepts of ER modeling are not sufficient to represent the requirements of the newer, more complex applications.

Response is development of additional ‘semantic’ modeling concepts.

Page 4: Chapter 12

49

The Enhanced Entity-Relationship Model

Semantic concepts are incorporated into the original ER model and is called the Enhanced Entity-Relationship (EER) model.

Additional concepts of EER model includes specialization / generalization, part/whole, and Categorization.

Page 5: Chapter 12

50

Concept of Specialization / Generalization

Associated with the related concepts of entity types described as superclasses or subclasses and the process of attribute inheritance.

Superclass– An entity type that includes

distinct subclasses that require to be represented In a data model.

Page 6: Chapter 12

51

Concept of Specialization / Generalization

Subclass– A subclass is an entity type that has a

distinct role and is also a member of the superclass.

Attribute Inheritance– An entity in a subclass may possess

subclass specific attributes, as well as those associated with the superclass.

Page 7: Chapter 12

52

Concept of Specialization / Generalization

Generalization– The process of minimising the

differences between entities by identifying their common features.

Specialization and generalization has disjoint and participation constraints.

Page 8: Chapter 12

Subtype and Super-type

Faculty

Full Time Faculty

Part Time Faculty

Part (day)Time

FacultyPart (Night)Time

Faculty

Page 9: Chapter 12

Generalization & Specialization

Aircraft

Commercial Military

B52 B-1B747 777

Generalization Specialization

Page 10: Chapter 12

53

Specialization of Staff Entity into Job Roles Subclasses

Page 11: Chapter 12

54

Specialization of Staff Entity into Job Roles and Contract of Employment Subclasses

Page 12: Chapter 12

55

A Shared Subclass called Sales_Trainee

Page 13: Chapter 12

Part/Whole Relationship

Page 14: Chapter 12

56

Categorization The modeling of a single subclass (called a category) with a

relationship that involves more than one distinct superclass.

A category subclass has selective inheritance.

Divided based on total or partial participation. – Total - every occurrence of all superclasses must appear

in the category. – Partial - constraint is removed.

Page 15: Chapter 12

57

Property_Owner and Property Categories

Page 16: Chapter 12

58

Property represented as a Specialization / Generalization.

Page 17: Chapter 12

59

Manager’s View of DreamHome Case Study Building an EER Model

Identify entity types.

Identify relationship types.

Determine cardinality and participation constraints of relationship types.

Identify and associate attributes with entity or relationship types.

Page 18: Chapter 12

60

Manager’s View of DreamHome Case Building an EER Model

Determine candidate and primary key attributes.

Specialize / generalize entity types.

Categorize entity types.

Draw the EER Diagram.

Page 19: Chapter 12

61

Manager’s View Major Relationships

Page 20: Chapter 12

62

Manager’s ViewEntities and their attributes

Page 21: Chapter 12

63

Manager’s ViewEntities and their attributes (Continued)

Page 22: Chapter 12

64

Manager’s ViewEntity and primary and alternate keys