Difference between Generalization and Specialization in DBMS

 

Difference between Generalization and Specialization in DBMS

Generalization and specialization are the Enhanced Entity Relationship diagram (EER-diagram)

1. Generalization :
It works on the principle of a bottom-up approach. In Generalization, lower-level functions are combined to form higher-level function which is called as entities. This process is repeated further to make advanced-level entities.

In Generalization, process properties are drawn from particular entities and thus we can create the generalized entity. We can summarize the Generalization process as it combines subclasses to form a superclass.

Example of Generalization –
Consider two entities Student and Patient. These two entities will have some characteristics of their own. For example Student entity will have Roll_No, Name, and Mob_No while the patient will have PID, Name, and Mob_No characteristics. Now in this example Name and Mob_No of both Student and Patient can be combined as a Person to form one higher-level entity and this process is called as Generalization Process.

2. Specialization :
We can say that Specialization is the opposite of Generalization. In Specialization, things are broken down into smaller things to simplify them further. We can also say that in Specialization a particular entity gets divided into sub-entities and it’s done on the basis of its characteristics. Also in Specialization Inheritance takes place.

Example of Specialization –
Consider an entity Account. This will have some attributes consider them Acc_No and Balance. Account entity may have some other attributes like Current_Acc and Savings_Acc. Now Current_Acc may have Acc_No, Balance, and Transactions while Savings_Acc may have Acc_No, Balance and Interest_Rate henceforth we can say that specialized entities inherent characteristics of the higher-level entities.

After applying generalization and specialization, the structure of resultant figures is the same.



Difference between Generalization and Specialization :

GENERALIZATIONSPECIALIZATION
Generalization works in the Bottom-Up approach.Specialization works in a top-down approach.
In Generalization, the size of the schema gets reduced.In Specialization, the size of the schema gets increased.
Generalization is normally applied to a group of entities.We can apply Specialization to a single entity.
Generalization can be defined as a process of creating groupings from various entity setsSpecialization can be defined as the process of creating subgrouping within an entity set
In the Generalization process, what actually happens is that it takes the union of two or more lower-level entity sets to produce higher-level entity sets.Specialization is the reverse of Generalization. Specialization is a process of taking a subset of a higher-level entity set to form a lower-level entity set.
The generalization process starts with the number of entity sets and it creates a high-level entity with the help of some common features.The specialization process starts from a single entity set and it creates a different entity set by using some different features.
In Generalization, the difference and similarities between lower entities are ignored to form a higher entity.In Specialization, a higher entity is split to form lower entities.
There is no inheritance in Generalization.There is inheritance in Specialization.




Tags: generalization,specialization,specialization and generalization,dbms - specialization and generalization,specialization and generalization in dbms,generalization in dbms,generalization & specialization in dbms,generalization & specialization in hindi,difference between specialization and generalization,difference between generalization and specialization,specialization and generalization examples,specialization in dbms,generalization and specialization in dbms

Post a Comment

0 Comments