ER Model in DBMS
Darshika Srivastava
Associate Project Manager @ HuQuo | MBA,Amity Business School
What is the ER Model in DBMS?
In Database Management System, a Data Model is a set of tools that is used to logically define the database design at each level of abstraction. In other words, it is a collection of tools to describe the data, data relationships, data semantics, and Consistency Constraints. The Data Models are of many types like Relational Model, ER Model, Object Oriented Model, etc. In this article, we will discuss the ER Model in DBMS.
The ER Model is an abbreviation for Entity Relationship Model. This data model deals with two things- the Entities and the Relationship among the various Entities in the Database. Before discussing Entity Relationship Model in DBMS, let’s first discuss some basic terminologies.
Therefore, the above terminologies form the foundation for ER Model in DBMS.
ER Model Definition and Example
An ER Model is the Data Model which is described as the logical representation of data in the form of objects and the relationship among them. The objects are called entities and the set of features that describe the entity is called an ‘attribute set.’
For example, in the database of a school, the students are interpreted as entities that have attributes such as Name, Roll Number, Section, Course Enrolled, etc. In this way, entities in ER Model can be represented and the diagram which shows the Entities and Relationships among them is called ER Diagram.
Now, let’s see if the ER Model in DBMS can be represented using the ER Diagram.
Components of ER Diagram
Since, ER Model in DBMS includes the Entities, Relations, and Attributes, these are called the components of ER Diagram. The following Diagram shows the Components of ER Diagram which are discussed here in detail.
领英推荐
Entity
As discussed earlier, an Entity is an object defined in terms of some features. An Entity can be of the following types:
These are represented in ER Model in DBMS as below:
Attributes
These describe the entity in the ER Diagram. They are of the following types:
In ER Diagram in DBMS, attributes are represented using ellipse in the following way:
Relationship
A Relationship is the association among the entities. It is represented using Rhombus. For example, Employee and company are two entities then relationship between these two can be given as follows:
Relationships are also defined in terms of cardinality in DBMS which will be discussed later. Therefore, ER Model finds its importance in representing the objects or entities in terms of specific features and establishing a proper relationship among them.