ERModelling
ERModelling
ERModelling
ER modeling:
A graphical approach for understanding and
designing database which is independent from
the actual database implementation.
Weak entities are represented with double rectangular box in the ER Diagram and the
identifying relationships are represented with double diamond. Partial Key attributes are
represented with dotted lines.
E.g if Works-for is the relationship between the Employee entity and the department
entity, then Ram works for Comp.sc department, shyam works –for electrical
department ..etc are relationship instances of the relationship, works-for
Constraints on Relationship Type
The minimum and maximum values of this connectivity is called the cardinality of the
relationship
Participation Constraint
Participation constraint specifies whether the existence of
an entity depends on its being related to another entity
via the relationship type. This specifies the minimum
number of relationship instances that each entity can
participate in.
Total participation
These attributes best describe the relationship rather than any individual entity.
The identifying relationship is the one which relates the weak entity with the strong entity on
which it depends.
CASE STUDY 2: Suppose you are given the following
requirements for a simple database for the National Hockey
League (NHL):
•The NHL has many teams.
•Each team has a name, a city, a coach, a captain, and a set of
players.
•Each player belongs to only one team.
•Each player has a name, a position (such as left wing or goalie),
a skill level, and a set of injury records.
•A team captain is also a player.
•A game is played between two teams (referred to as host_team
and guest_team) and has a date (such as May 11th, 1999) and a
score (such as 4 to 2).
• Construct a clean and concise ER diagram for the NHL
database.
CASE STUDY 3: Construct an E-R diagram for a
car-insurance company whose customers own
one or more cars each. Each car has associated
with it zero to any number of recorded
accidents.
Q. Entity Relationship Diagram ?
Q. Entity Relationship Diagram ?
Ans. It is a graphical representation of Entity
Relationship Model.
Q. Entity Relationship Diagram ?
Ans. It is a graphical representation of Entity
Relationship Model.