An Entity–relationship model (ER model) describes the structure of a database with the help
of a diagram, which is known as Entity Relationship Diagram (ER Diagram). An ER model
is a design or blueprint of a database that can later be implemented as a database. The main
components of E-R model are: entity set and relationship set.
Rectangle: Represents Entity sets.////Ellipses: Attributes/////Diamonds: Relationship Set
Lines: They link attributes to Entity Sets and Entity sets to Relationship Set
Double Ellipses: Multivalued Attributes////Dashed Ellipses: Derived Attributes
Double Rectangles: Weak Entity Sets////Double Lines: Total participation of an entity in a relationship set
An entity is an object or component of data. An entity is represented as rectangle in an ER
diagram./////For example: In the following ER diagram we have two entities Student and College and these
two entities have many to one relationship as many students study in a single college. We will
read more about relationships later, for now focus on entities.
An entity that cannot be uniquely identified by its own attributes and relies on the relationship
with other entity is called weak entity. The weak entity is represented by a double rectangle.
For example – a bank account cannot be uniquely identified without knowing the bank to which the account
belongs, so bank account is a weak entity.