ER Model
ER Model
The Entity Relationship Model is a model for identifying entities (like student,
car or company) to be represented in the database and representation of how
those entities are related.
ER Model is used to model the logical view of the system from a data
perspective which consists of these symbols:
a Database System.
What is Entity?
An Entity may be an object with a physical existence – a particular person,
set. For Example, E1 is an entity having Entity Type Student and the set of all
1. Strong Entity
A Strong Entity is a type of entity that has a key Attribute. Strong Entity does
not depend on other Entity in the Schema. It has a primary key, that helps in
An Entity type has a key attribute that uniquely identifies each entity in the
entity set. But some entity type exists for which key attributes can’t be
Children, Spouse) of an Employee. But the dependents can’t exist without the
Identifying Entity type for Dependent, which means it is Strong Entity Type .
of weak entity types is always total. The relationship between the weak
entity type and its identifying strong entity type is called identifying
Roll_No, Name, DOB, Age, Address, and Mobile_No are the attributes that
oval.
Types of Attributes
1. Key Attribute
The attribute which uniquely identifies each entity in the entity set is called
the key attribute. For example, Roll_No will be unique for each student. In ER
2. Composite Attribute
attribute. For example, the Address attribute of the student Entity type
consists of Street, City, State, and Country. In ER diagram, the composite
3. Multivalued Attribute
An attribute consisting of more than one value for a given entity. For
4. Derived Attribute
An attribute that can be derived from other attributes of the entity type is
The Complete Entity Type Student with its Attributes can be represented as: