Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 12

Entity-Relationship Data Model

E-R Data Model


A semantic data model, used for the graphical
representation of the conceptual database
design
Major Components
• Entities
• Attributes
• Relationships
Entity
• Term used to mean three different meanings
– Entity type
– Entity instance
– Entity set
Entity Type
• A name/label assigned to items/objects that
exist in an environment and that have
similar properties
• It could be person, place, event or even
concept
• Example: furniture, electronic equipments,
stationary, students, etc
Entity Type
• Distinguishable from other entity types on the
basis of properties
• Different from External Entity
Entity Instance & Entity
Set
• A particular object belonging to a particular entity type is
an Entity instance
• A group of entity instances of a particular entity type is
called an entity set.

Example
• Entity Type: STUDENT
• Entity Instance: Ali Ahmad
• Entity Set: All students
Types of Entity Types
Entity types can be classified into two types
1. weak/dependent ETs
2. regular/strong/independent ETs
Weak Entity Types

An entity type whose instances cannot exist without


being linked with instances of some other entity
type, i.e., they cannot exist independently
Strong Entity Type
• A strong/regular entity type is the one whose
instances can exist independently, i.e., without
being linked to other instances
• Strong ETs have their own identity

Example: STUDENT is Strong ET but GUARDIAN is


week ET
Naming Entity Types
(Recommendations)
• Singular noun recommended
• Organization specific names
• Write in capitals
• Abbreviations can be used, be consistent
Symbols
Regular Entity Type NAME

Weak Entity Type NAME

EMPPLOYEE DEPENDENTS

STUDENT GUARDIAN

You might also like