The Wayback Machine - https://web.archive.org/web/20240907030639/https://www.geeksforgeeks.org/generalization-specialization-and-aggregation-in-er-model/
Open In App

Generalization, Specialization and Aggregation in ER Model

Last Updated : 22 Mar, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Using the ER model for bigger data creates a lot of complexity while designing a database model, So in order to minimize the complexity Generalization, Specialization, and Aggregation were introduced in the ER model and these were used for data abstraction in which an abstraction mechanism is used to hide details of a set of objects. Some of the terms were added to the Enhanced ER Model, where some new concepts were added. These new concepts are:

  • Generalization
  • Specialization
  • Aggregation

Generalization

Generalization is the process of extracting common properties from a set of entities and creating a generalized entity from it. It is a bottom-up approach in which two or more entities can be generalized to a higher-level entity if they have some attributes in common. For Example, STUDENT and FACULTY can be generalized to a higher-level entity called PERSON as shown in Figure 1. In this case, common attributes like P_NAME, and P_ADD become part of a higher entity (PERSON), and specialized attributes like S_FEE become part of a specialized entity (STUDENT). 

Generalization is also called as ‘ Bottom-up approach”.

Generalization

Generalization

Specialization

In specialization, an entity is divided into sub-entities based on its characteristics. It is a top-down approach where the higher-level entity is specialized into two or more lower-level entities. For Example, an EMPLOYEE entity in an Employee management system can be specialized into DEVELOPER, TESTER, etc. as shown in Figure 2. In this case, common attributes like E_NAME, E_SAL, etc. become part of a higher entity (EMPLOYEE), and specialized attributes like TES_TYPE become part of a specialized entity (TESTER). 

Specialization is also called as ” Top-Down approch”.

Specialization

Specialization

Inheritance: It is an important feature of generalization and specialization

  • Attribute inheritance: allows lower level entities to inherit the attributes of higher level entities and vice versa.
  • in diagram: Car entity is an inheritance of Vehicle entity ,So Car can acquire attributes of Vehicle example:car can acquire Model attribute of Vehicle.

  • Participation inheritance: In participation inheritance, relationships involving higher level entity set also inherited by lower level entity and vice versa.
  • in diagram: Vehicle entity has an relationship with Cycle entity ,So Cycle entity can acquire attributes of lower level entities i.e Car and Bus since it is inheritance of Vehicle.

relation

Example of Relation

Aggregation

An ER diagram is not capable of representing the relationship between an entity and a relationship which may be required in some scenarios. In those cases, a relationship with its corresponding entities is aggregated into a higher-level entity. Aggregation is an abstraction through which we can represent relationships as higher-level entity sets.

For Example, an Employee working on a project may require some machinery. So, REQUIRE relationship is needed between the relationship WORKS_FOR and entity MACHINERY. Using aggregation, WORKS_FOR relationship with its entities EMPLOYEE and PROJECT is aggregated into a single entity and relationship REQUIRE is created between the aggregated entity and MACHINERY.

Aggregation

Aggregation

Representing Aggregation Via Schema

To represent aggregation, create a schema containing the following things.

  • the primary key to the aggregated relationship
  • the primary key to the associated entity set
  • descriptive attribute, if exists

FAQs on Generalization, Specialization and Aggregation in ER Model

Q.1: What are Generalization, Specialization, and Aggregation in ER Model?

Answer:

Generalization is the higher level of understanding of data from lower levels of data whereas Specialization is the process of defining one or more entities from present entities and Aggregation is the process of combining two or more entities.

Q.2: What is the purpose of the Generalization?

Answer:

Generalization is simply gathering the common properties from entities and creating a generalized concept from those extracted data. Generalization helps in improving the flexibility, and reusability of the database.

Q.3: Why is generalization important in the database?

Answer:

Generalization is important in the database because it helps to gather important information so that it becomes easier and faster for the user the analysis of data and it also helps in making decisions faster.


Previous Article
Next Article

Similar Reads

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 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 the Gen
3 min read
Difference Between Specialization and Aggregation in DBMS
Specialization and Aggregation in Database Management Systems are the Enhanced Entity Relationship Diagrams also known as (EER-Diagram). Specialization and Aggregation in ER model are used for data abstraction in which an abstraction mechanism is used to hide details of a set of objects. What is Specialization?Specialization in DBMS is the concept
4 min read
Basic approaches for Data generalization (DWDM)
Data Generalization is the process of summarizing data by replacing relatively low level values with higher level concepts. It is a form of descriptive data mining. There are two basic approaches of data generalization : 1. Data cube approach : It is also known as OLAP approach. It is an efficient approach as it is helpful to make the past selling
2 min read
Constraints on Generalization
Constraints on generalization define the rules governing the relationship between supertypes and subtypes. They specify which entities can belong to specific subtypes, whether an entity can belong to multiple subtypes, and whether a supertype entity must belong to at least one subtype. To model an enterprise more accurately, there are some constrai
4 min read
Aggregation in DBMS
In Database Management Systems (DBMS), aggregation is like mathematically setting collectively a jigsaw puzzle of health. It’s about placing all of the pieces together to create an entire photograph. In this article, we are going to discuss What is aggregation in a Database, its applications, etc. What is Aggregation in DBMS?Imagine constructing so
4 min read
Difference between Bottom-Up Model and Top-Down Model
Top-Down Design Model: In the top-down model, an overview of the system is formulated without going into detail for any part of it. Each part of it then refined into more details, defining it in yet more details until the entire specification is detailed enough to validate the model. if we glance at a haul as a full, it's going to appear not possib
3 min read
Difference between Relational model and Document Model
1. Relational Model: Relational model is a model for the management of the database. It is called so because the data is stored in the form of relations i.e., in the form of tables. Every row consists of related data. These row in the table depict a real-world entity. To work with python and the Relational data model we need a prerequisite knowledg
2 min read
Similarities between TCP/IP model and OSI model
Pre-Requisite: Layers of OSI Model, TCP/IP Model OSI Model or Open Systems Interconnection is an architecture of 7 layers in which each layer has its work to perform whereas TCP/IP is a concise version of the OSI Model. TCP/IP Model consists of 4 layers rather than the 7 layers of the OSI Model. There are so many similarities between the TCP/IP mod
5 min read
Difference between E-R Model and Relational Model in DBMS
In database management systems (DBMS), two key methods are the Relational model and the Entity-Relationship (E-R) model. Each has a specific function in the development and operation of databases. While the Relational model provides the practical structure for organizing and managing data in relational databases, the E-R model concentrates on offer
3 min read
ACID Model vs BASE Model For Database
The difference between ACID and BASE database models is the way they deal with this limitation. The ACID model provides a consistent system.The BASE model provides high availability.To provide further insight, we will discuss each of the models separately in detail. ACID Model:Collections of operations that form a single logical unit of work are ca
5 min read
Mapping from ER Model to Relational Model
To understand this, you should have an idea about: ER model Relation model After designing the ER diagram of system, we need to convert it to Relational models which can directly be implemented by any RDBMS like Oracle, MySQL etc. In this article we will discuss how to convert ER diagram to Relational Model for different scenarios. Case 1: Binary R
5 min read
This is exactly why we still use the OSI model when we have TCP/IP Model
What is the OSI Model?OSI is an acronym for Open Systems Interconnection. The International Organization for Standardization (ISO) created the OSI model (ISO). It's a model for how applications communicate over the internet. In order to facilitate interoperability between diverse devices and applications, the OSI model describes computing functions
10 min read
What is OSI Model? - Layers of OSI Model
OSI stands for Open Systems Interconnection , where open stands to say non-proprietary. It is a 7-layer architecture with each layer having specific functionality to perform. All these 7 layers work collaboratively to transmit the data from one person to another across the globe. The OSI reference model was developed by ISO - 'International Organiz
15+ min read
Introduction of Relational Model and Codd Rules in DBMS
Pre-Requisite: Relational Model in DBMS It was proposed by Dr. E.F. Codd. It uses the concept of relations to represent each and every file. Relations are Two-Dimensional Tables. It is easy to implement and easy to simplification in the operations to manipulate the data. This is the most popular data model. It is simple to implement. It uses the pr
12 min read
Difference between ER Model and RDBMS
1. ER (Entity- Relationship) Model : ER model stands for entity relationship model. It specifies the structure of a database by giving the relationship between the entities of the system. An entity set is a group of entities that are similar to each other. It is considered as a conceptual design which can further be used to implement a database. It
2 min read
Difference between Hierarchical and Relational data model
1. Hierarchical Data Model : Hierarchical data model is the oldest type of data model. It was developed by IBM in 1968. It organizes data in a tree-like structure. Hierarchical model consists of the following : It contains nodes that are connected by branches. Topmost node is called the root node. If there are multiple nodes that appear at the top
3 min read
Difference between Hierarchical and Network Data Model
1. Hierarchical Data Model: Hierarchical data model is the oldest type of the data model. It was developed by IBM in 1968. It organizes data in the tree-like structure. Hierarchical model consists of the following : It contains nodes which are connected by branches.The topmost node is called the root node.If there are multiple nodes appear at the t
3 min read
Difference between Network and Relational data model
1. Network Data Model: It is advance version of hierarchical data model. To organize data it uses directed graphs instead of tree-structure. In this child can have more than one parent. It uses concept of two data structures i.e., Records and Sets. In the above figure, Project is root node which has two children i.e. Project 1 and Project 2. Projec
3 min read
Difference between Hierarchical, Network and Relational Data Model
1. Hierarchical Data Model: Hierarchical data model is the oldest type of the data model. It was developed by IBM in 1968. It organizes data in the tree-like structure. Hierarchical model consists of the following : It contains nodes which are connected by branches.The topmost node is called the root node.If there are multiple nodes appear at the t
4 min read
Advantages and Disadvantages of an ER-Model
Pre-requisites: ER Model Entity is a thing or an object in real world. As the name suggests that Entity Relationship model uses collection of basic objects called entities & relationships.It develops a very simple and easy to design view of data. Entity relationship model is widely used in Database design. To get some clarity about an ER-Model
4 min read
Types of Keys in Relational Model (Candidate, Super, Primary, Alternate and Foreign)
Keys are one of the basic requirements of a relational database model. It is widely used to identify the tuples(rows) uniquely in the table. We also use keys to set up relations amongst various columns and tables of a relational database. Different Types of Database Keys Candidate Key Primary Key Super Key Alternate Key Foreign Key Composite Key To
6 min read
Attributes to Relationships in ER Model
In ER model, entities have attributes which can be of various types like single-valued, multi-valued, composite, simple, stored, derived and complex. But relationships can also have attributes associated to them. Generally it is not recommended to give attributes to the relationships if not required because while converting the ER model into Relati
2 min read
Two State Process Model in Operating System
Pre-requisite: States of a Process in Operating Systems The process in an operating system passes from different states starting from its formation to its completion. A process consists of program data and its associated data and a process control block (PCB). A process may change its state because of the following events like I/O requests, interru
3 min read
Building blocks of a Data Model
A data model is a structure of the data that contains all the required details of the data like the name of the data, size of the data, relationship with other data and constraints that are applied on the data. It is a communication tool. A data model is essential in order to store the database in a sorted manner. It will provide the interaction be
2 min read
Structural Constraints of Relationships in ER Model
Prerequisite - ER Model To understand Structural Constraints, we must take a look at Cardinality Ratios and Participation Constraints. Cardinality Ratios of relationships : The entities are denoted by rectangle and relationships by diamond. There are numbers (represented by M and N) written above the lines which connect relationships and entities.
3 min read
Relationships in ER model
Entity Relationship model (ER model) contains entities and relationships. ER model enables us to know how these entities are associated with each other. Entities interact with other entities through associations or relationships. Let us assume that Geeks is the name of a student, Placement 100 is the name of a course. For example, student Geeks enr
2 min read
Data Model In Neo4j
The data model in Neo4j organizes data using the concepts of nodes and relationships. Both nodes and relationships can have properties, which store the data items associated with nodes and relationships. Nodes can have labels: A node can have zero, one, or several labels.The nodes that have the same label are grouped into a collection that identifi
3 min read
Record-Based Data Model
Data Model is the model that organizes elements of the data and tell how they relate to one-another and with the properties of real-world entities. The basic purpose of the data model is to make sure that the data stored in the data model is understood fully. Further, it has three types- 1. Physical Data Model, 2. Record-Based Data Model, 3. Object
2 min read
Model Planning for Data Analytics
In this article, we are going to discuss model planning for data analytics in which we will cover all procedural steps one by one. Model planning is phase 3 of lifecycle phases of data analytics, where team determines methods, techniques, and workflow it intends to follow for subsequent model building phase. During this phase that team refers to hy
3 min read
Key-Value Data Model in NoSQL
A key-value data model or database is also referred to as a key-value store. It is a non-relational type of database. In this, an associative array is used as a basic database in which an individual key is linked with just one value in a collection. For the values, keys are special identifiers. Any kind of entity can be valued. The collection of ke
3 min read
Article Tags :