04.06.2015 Views

Database Modeling and Design

Database Modeling and Design

Database Modeling and Design

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.2 Advanced ER Constructs 23<br />

2.2 Advanced ER Constructs<br />

2.2.1 Generalization: Supertypes <strong>and</strong> Subtypes<br />

The original ER model has been effectively used for communicating fundamental<br />

data <strong>and</strong> relationship definitions with the end user for a long<br />

time. However, using it to develop <strong>and</strong> integrate conceptual models with<br />

different end user views was severely limited until it could be extended<br />

to include database abstraction concepts such as generalization. The generalization<br />

relationship specifies that several types of entities with certain<br />

common attributes can be generalized into a higher-level entity<br />

type—a generic or superclass entity, more commonly known as a supertype<br />

entity. The lower levels of entities—subtypes in a generalization hierarchy—can<br />

be either disjoint or overlapping subsets of the supertype<br />

entity. As an example, in Figure 2.4 the entity Employee is a higher-level<br />

Employee<br />

supertype<br />

subtypes<br />

d<br />

Manager<br />

Engineer<br />

Technician<br />

Secretary<br />

(a) Generalization with disjoint subtypes<br />

Individual<br />

O<br />

Employee<br />

Customer<br />

(b) Generalization with overlapping subtypes <strong>and</strong> completeness constraint<br />

Figure 2.4<br />

Supertypes <strong>and</strong> subtypes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!