Save
CS331
Chapter 4
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Paridhi
Visit profile
Cards (29)
What is a subclass in the context of entity types?
A subclass is a meaningful sub-grouping of an entity type.
View source
How can the EMPLOYEE entity type be further grouped?
It can be grouped into SECRETARY, ENGINEER, TECHNICIAN, etc., based on job type.
View source
What are the two bases for grouping EMPLOYEEs?
Based on job type and method of pay.
View source
What do EER diagrams extend from?
EER diagrams extend ER diagrams.
View source
What is the relationship between subclasses and superclasses?
Each subclass is a subset of its superclass.
View source
What is the
superclass
for the subclasses SECRETARY, TECHNICIAN, and MANAGER?
EMPLOYEE
is the superclass.
View source
What type of relationship do subclasses and superclasses represent?
They represent superclass/subclass relationships.
View source
What does the IS-A relationship signify in subclasses?
It signifies that a subclass is a specific type of its superclass.
View source
Can an entity exist in the database solely as a member of a subclass?
No, it must also be a member of the superclass.
View source
What happens if an entity is a salaried employee and an engineer?
It belongs to both subclasses:
ENGINEER
and
SALARIED_EMPLOYEE
.
View source
What is
attribute inheritance
in
superclass/subclass relationships
?
A subclass inherits all
attributes
and relationships from its superclass.
View source
What attributes do
subclasses
like
SECRETARY
inherit from the
EMPLOYEE
superclass
?
They inherit
Name
,
SSN
,
Birthdate
, and
Address
.
View source
What is
specialization
in the context of
subclasses
?
Specialization defines a set of subclasses from a
superclass
.
Based on distinguishing characteristics of entities in the superclass.
Example: {
SECRETARY
,
ENGINEER
,
TECHNICIAN
} is a specialization of
EMPLOYEE
based on job type.
View source
How can specialization be represented in
EER diagrams
?
It can be represented diagrammatically with
subclasses
branching from the
superclass
.
View source
What are specific or local
attributes
in subclasses?
They are attributes unique to the subclass, such as
TypingSpeed
for SECRETARY.
View source
What is
generalization
in the context of subclasses?
Generalization is the process of combining several classes with common features into a
superclass
.
View source
How can
CAR
and
TRUCK
be related in terms of generalization?
They can be generalized into a superclass called
VEHICLE
.
View source
What are the types of
specialization/generalization
constraints?
Disjointness Constraint
Specifies subclasses must be disjoint.
Completeness (Exhaustiveness) Constraint
Total
: Every entity must belong to a subclass.
Partial
: An entity may not belong to any subclass.
View source
What does the
disjointness constraint
specify?
It specifies that an entity can be a member of at most one
subclass
.
View source
What does the
completeness constraint
indicate?
It indicates whether every entity in the
superclass
must belong to some
subclass
.
View source
What are the four types of
specialization/generalization
?
Disjoint
,
total
Disjoint,
partial
Overlapping
, total
Overlapping, partial
View source
What is a shared
subclass
?
A shared subclass is a subclass that can inherit from more than one
superclass
.
View source
What is the difference between
specialization
and
generalization
processes?
Specialization is
top-down
, while generalization is
bottom-up
.
View source
What is the EER UNIVERSITY example about?
Tracks three types of persons: employees, alumni, and students.
Employees can be faculty, staff, or student assistants.
Students can be graduate or undergraduate.
View source
What is a category or UNION TYPE?
A category is a subclass in more than one distinct superclass/subclass relationship.
View source
How does a category differ from a shared subclass?
A category must exist in at least one superclass, while a shared subclass must exist in all superclasses.
View source
What are alternative diagrammatic notations in EER modeling?
ER/EER diagrams are specific notations for displaying concepts.
UML class diagrams are a popular alternative notation.
View source
What are the formal definitions of the
EER model
?
Specialization
: A set of subclasses with a common superclass.
Generalization
: Combining classes into a superclass.
Predicate-defined subclass
: Membership specified by a condition.
User-defined subclass
: Membership specified individually.
View source
What is the significance of the
EER model
in data modeling?
Introduces class/subclass relationships.
Explains
specialization
and
generalization
.
Discusses
inheritance
and
constraints
on EER schemas.
View source