Web-DSS-Chapter-03
Web-DSS-Chapter-03
Web-DSS-Chapter-03
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
58 CHAPTER 3 ■ Entity-Relationship Modeling<br />
Attributes<br />
common to all<br />
entities<br />
SUPERCLASS<br />
General<br />
entity type<br />
SUBCLASS 1 SUBCLASS 2 SUBCLASS N<br />
Att. of<br />
subclass1<br />
Att. of<br />
subclass2<br />
Specialized<br />
entity type<br />
Figure 3.23 The notations for superclass and subclass relationships.<br />
There are several reasons for introducing superclass and subclasses into an E-R model.<br />
First, incorporating a superclass and subclasses maintains the cleanliness of the structure and<br />
improves the conceptual flow. Second, it adds familiar semantic information to an E-R diagram.<br />
We consider using subtypes if the following conditions apply:<br />
1. Certain attributes apply to some, but not all, instances of an entity type.<br />
2. An instance of a subtype participates in a relationship unique to that relationship (see<br />
Figure 3.24).<br />
Definition<br />
The Enhanced Entity-Relationships (EE-R) model is a revised E-R model that extends the original<br />
E-R model and supports additional semantic concepts by providing new modeling constructs.<br />
A superclass is an entity type that has one or more distinct sub groups with unique attributes.<br />
A subclass is an entity type that shares common attributes or relationships distinct from other<br />
subclasses.<br />
3.15.2 Attribute Inheritance and Subclass Relationships<br />
Attribute Inheritance is the property by which subclass entities inherit attributes of the superclass.<br />
The subclass entity type is an entity type in itself with a set of attributes and relationships.<br />
In addition to its own attributes, a subclass entity inherits all the attributes of its superclass. For<br />
example, the STUDENT subclass has attributes such as MajorDept, Class, and GPA. It also in-