Lecture 6
Lecture 6
Relationship
Model
Part-2
Weak Entity Set
• Weak entity set: An entity set that does not have a
primary key.
• Its existence depends on the existence of a strong
entity set.
• The discriminator of a weak entity set is the set of
attributes that distinguishes between all the entities of
a weak entity set.
• Its primary key is created by combining the primary
key of the strong entity set on which the weak entity
set is existence dependent and the weak entity set’s
discriminator.
• We underline the discriminator attribute with a dashed
line.
Example
Employee={eid,name, age,department}
Dependent={name,age,relation}
Identifyin
Employee Depende
g
nt
relationsh
ip
Weak Entity set examples contd.
Weak Entity set examples
Weak Entity set examples contd.
MCQ
Part-time Full-time
prepaid Post paid
student student
artist player
eb01 eb14
Aggregation
• An ER diagram is not capable of representing relationship
between an entity and a relationship which may be
required in some scenarios.
• In those cases, a relationship with its corresponding
entities is aggregated into a higher level entity.
• Aggregation is an abstraction through which relationships
are treated as higher level entities.
• It is used to express relationships among relationships.
Aggregation Contd.