ER Diagram-
In Entity-Relationship model a database is modelled as a collection of entities and relationship
among entities. The ER model views the real world as a construct of entities and association
between entities.
The symbols used for the basic ER constructs are:
Entities
An entity is an object whose information is stored in the database. It is distinguishable from other
objects. For example: specific person, company, event, plant. In other words, anything that may
'have an independent existence and about which we intend to collect data is known as Entity. It is
also known as Entity type. Entities are represented by labeled rectangles. The label is the name
of the entity. Entity names should be singular nouns.
Relationships
A Relationship represents an association between two or more entities. Relationships are
classified in terms of degree, connectivity, cardinality, and existence. An example of a
relationship would be:
• Employees are assigned to projects.
• Projects have subtasks
• Departments manage one or more projects
• Derived
ER-EXAMPLE –Football Club
A football club has a name and a ground and is made up of players. A player can play for only
one club and a manager, represented by his name, manages a club. A footballer has a registration
number, name and age. A club manager also buys players. Each club plays against each other
club in the league and matches have a date, venue and score.