11
DATABASE MANAGEMENT SYSTEM PRESENTATION Topic: - Enhanced Entity Relationship (EER) Model Presented by @RANVIJAYGAUR 1. The Entity (Review) 2. What is an EER Model? 3. Specialization 4. Model Shapes 5. Generalization 6. Hierarchies and Lattices Presented by @RANVIJAYGAUR 1 6/10/22

EER Modeling

Embed Size (px)

Citation preview

Page 1: EER Modeling

DATABASE MANAGEMENT SYSTEM

PRESENTATIONTopic: - Enhanced Entity Relationship (EER) Model

Presented by @RANVIJAYGAUR1. The Entity (Review)2. What is an EER Model?3. Specialization4. Model Shapes5. Generalization6. Hierarchies and Lattices

Presented by @RANVIJAYGAUR

1

Tuesday, May 2, 2023

Page 2: EER Modeling

The Entity (Review) Entity Relationship (ER) Model – represents an object

Physical – person, car Conceptual – school, company

ER model is based on the perception of the real world as a collection of objects with attributes

Attributes – describe the entity Single, Multi-value Composite, Simple Derived, Stored

Tuesday, May 2, 2023 Presented by @RANVIJAYGAUR

2

Page 3: EER Modeling

What is an EER Model? Enhanced Entity Relationship (EER) – Data Modeling EER shows complex relationships between objects in a

database (multimedia, geographical). Concepts of subclasses and super classes, specializations

and generalizations. Put concepts in diagram to form EER model

Presented by @RANVIJAYGAUR

3

Tuesday, May 2, 2023

Page 4: EER Modeling

SpecializationSubgrouping into subclasses (top-down approach) Example: EMPLOYEE -> SECRETARY MANAGER, etc. Inheritance – Inherit attributes and relationships from

superclass (Name, Birthdate, etc.) Subclasses may have unique attributes

SECRETARY has Typing Speed attribute, MANAGER has Business Unit Managed, etc.

Tuesday, May 2, 2023 Presented by @RANVIJAYGAUR

4

Page 5: EER Modeling

Specialization (cont.)

Tuesday, May 2, 2023 Presented by @RANVIJAYGAUR

5

Page 6: EER Modeling

Model Shapes When you have more than one subclass based on the same defining

attribute (Job Type), use To show class/subclass relationships, use

Used for relationships between entity types To show relationship between two different entity types, use

Tuesday, May 2, 2023Presented by @RANVIJAYGAUR

6

Page 7: EER Modeling

GeneralizationReverse processes of defining subclasses (bottom-up approach) Bring together common attributes in entities Example: CAR (with attributes color, price, max speed) and TRUCK (with attributes

color, price, tonnage) can be generalized into VEHICLE (with attributes color and price)

Tuesday, May 2, 2023Presented by @RANVIJAYGAUR

7

Hierarchies and LatticesEMPLOYEE

ENGINEERSECRETARY

SOFTWARE ENGINEER

SOFTWARE ENGINEER has all the attributes of an ENGINEER and EMPLOYEE

Page 8: EER Modeling

Hierarchies and Lattices

Lattice – subclass participates in more than one class/subclass relationship

Tuesday, May 2, 2023Presented by @RANVIJAYGAUR

8

EMPLOYEE

SECRETARY MANAGER

ENGINEER

ENGINERING MANAER

ENGINEERING MANAGER (shared subclass) is a MANGER and an ENGINEER

Page 9: EER Modeling

Categories Models a class/subclass with more than one superclass of distinct entity

types. Attribute inheritance is selective.

Tuesday, May 2, 2023Presented by @RANVIJAYGAUR

9

PERSON BANK COMPANY

OWNER

The category, OWNER, is a subclass of the union of PERSON, BANK, and COMPANY. OWNER is either a PERSON or a BANK or a COMPANY

Page 10: EER Modeling

Constraints Disjoint – an entity can be a member of at most one subclass of a

specialization Overlap – an entity may belong to more than one subclass of a

specialization Total specialization – each entity of a superclass belongs to some subclass of

a specialization Partial specialization – each entity of a superclass does not have to belong to

some subclass of a specialization

Tuesday, May 2, 2023Presented by @RANVIJAYGAUR

10

Page 11: EER Modeling

Tuesday, May 2, 2023Presented by @RANVIJAYGAUR 11

THANK YOU