Generalization/ Specialization
Dinesh Kumar Bhawnani, BIT DURG
PERSON
ISA
CUSTOMER EMPLOYEE
Name
Street
City
Cust_id Emp_id
Salary
Generalization/ Specialization
Dinesh Kumar Bhawnani, BIT DURG
ACCOUNT
ISA
CHECKING-ACCOUNT SAVINGS-ACCOUNT
Acc_No
Balance
Overdraft_Amount Interest_Rate
Generalization/ Specialization
Dinesh Kumar Bhawnani, BIT DURG
STUDENT
ISA
UNDER-GRADUATE POST-GRADUATE
Stud_Id
Stud_Name
Discipline
Specialization
Difference
No. Specialization Generalization
1It is a Top Down approach. It is a Bottom Up approach.
2Specialization stems from a single entity set;
it emphasizes differences among entities
within the set by creating distinct lower-
level entity sets.
Generalization proceeds from the recognition
that a number of entity sets share some
common features (namely, they are described
by the same attributes and participate in the
same relationship sets).
3The process of designating sub-groupings
within an entity set is called specialization.
The process of designating groupings from
various entity sets is called generalization.
4Specialization is a result of taking a subset
of higher level entity set to form a lower-
level entity set.
Generalization is a result of taking the union of
two or more disjoint (lower-level) entity sets to
produce a higher-level entity set.
Dinesh Kumar Bhawnani, BIT DURG
Constraints on Specialization/ Generalization
•Condition-defined.Incondition-definedlower-
levelentitysets,membershipisevaluatedonthe
basisofwhetherornotanentitysatisfiesan
explicitconditionorpredicate.
•User-defined.User-definedlower-levelentity
setsarenotconstrainedbyamembership
condition;rather,thedatabaseuserassigns
entitiestoagivenentityset.
Dinesh Kumar Bhawnani, BIT DURG
Condition -Defined
Dinesh Kumar Bhawnani, BIT DURG
ACCOUNT
ISA
CHECKING-ACCOUNT SAVINGS-ACCOUNT
Acc_No
Balance
Overdraft_Amount Interest_Rate
Account_Type
Dinesh Kumar Bhawnani, BIT DURG
PERSON
ISA
EMPLOYEE
Name
Street
City
CUSTOMER
Salary Credit_Rating
ISA
OFFICER SECRETARYTELLER
Officer_No
Station_No
Hours_Worked
Hours_Worked
User -Defined
Disjoint Constraint
Dinesh Kumar Bhawnani, BIT DURG
ACCOUNT
ISA
CHECKING-ACCOUNT SAVINGS-ACCOUNT
Acc_No
Balance
Overdraft_Amount Interest_Rate
Account_Type
disjoint
Dinesh Kumar Bhawnani, BIT DURG
PERSON
ISA
EMPLOYEE
Name
Street
City
CUSTOMER
Salary Credit_Rating
ISA
OFFICER SECRETARYTELLER
Officer_No
Station_No
Hours_Worked
Hours_Worked
Overlapping
Total Specialization/ Generaliztion
Dinesh Kumar Bhawnani, BIT DURG
ACCOUNT
ISA
CHECKING-ACCOUNT SAVINGS-ACCOUNT
Acc_No
Balance
Overdraft_Amount Interest_Rate
Account_Type
Dinesh Kumar Bhawnani, BIT DURG
PERSON
ISA
EMPLOYEE
Name
Street
City
CUSTOMER
Salary Credit_Rating
ISA
OFFICER SECRETARYTELLER
Officer_No
Station_No
Hours_Worked
Hours_Worked
Partial
Aggregation
•OnelimitationoftheE-Rmodelisthatitcannot
expressrelationshipsamongrelationships.
•Aggregationisanabstractionthroughwhich
relationshipsaretreatedashigherlevelentities.
Dinesh Kumar Bhawnani, BIT DURG
ER Diagram with redundant relationships
Dinesh Kumar Bhawnani, BIT DURG
JOB
EMPLOYEE BRANCH
MANAGER
works-on
manages
ER diagram with Aggregation
Dinesh Kumar Bhawnani, BIT DURG
MANAGER
manages
JOB
EMPLOYEE BRANCHworks-on
Draw the ER diagram for a banking enterprise
Dinesh Kumar Bhawnani, BIT DURG
Dinesh Kumar Bhawnani, BIT DURG
E R Diagram Notations
University Questions
1.Write short notes on
1.Generalization
2.Specialization
3.Disjoint and overlapping constraints
4.Condition defined and user defined constraints
5.Total and partial generalization
2.Explain the constraints based on generalization and specialization.
3.Differentiate between specialization and generalization.
4.Explain aggregation with example.
5.Explain enhanced entity set model with examples.
Dinesh Kumar Bhawnani, BIT DURG
For Video lecture on this topic please subscribe to my youtubechannel.
The link for my youtubechannel is
https://www.youtube.com/channel/UCRWGtE76JlTp1iim6aOTRuw?sub
_confirmation=1
Dinesh Kumar Bhawnani, BIT DURG