Escolar Documentos
Profissional Documentos
Cultura Documentos
Diagram
Presented by:
Fatiha Rashid
Javeria
Rafeeq
Introduction:
Logical representation of data in
an organization.
Views the entire system as a
collection of entities related to
one another.
Introduced by peter chen in
1976.
Advantages of E-R
Model:
CONCEPTUAL SIMPLICITY:
VISUAL REPRESENTATION:
EFFECTIVE
COMMUNICATION TOOL:
Elements of E-R
Model:
1: Entities
2: Attributes
3: Relationships
Entities:
An Entity is a
Person,Place,Thing or
Event for which data is
collected and maintained.
Represented by a rectangle
symbol
Entity name
Entity instance
A member of an entity
class is known as entity
instance .
Also known as
occurrence.
entity
Entity
Class
Entity
instanc
e
Entity
class
Entity instance
ATTRIBUTES:
** The characteristics of an
entity are called attributes or
properties.
Example: Name,
address,Class and
Email of a students
are his attributes.
Symb
ol
Attribute
name
Attribute
Domain:
*A
Relationships:
*A logical connection between different
enities.
* Established on the basis of interaction
between these entities.
Sym
bol
Relations
hip name
Doctor
Teacher
teach
es
students
trea
ts
Patient
Total Relationship:
If all entities of that entity set may be
participant in the relationship.
Example: In supplier_part
relationship,the relationship is total if
every part is supplied by a supplier.
artial relationship:
Types of Attributes
1:
2:
3:
4:
5:
6:
7:
Simple
composite
single valued
multi-valued
stored
derived
identifiers
GENDER
PERSON
omposite attribute:
*Can be divided into smaller
components.
city
street
ADDRE
SS
EMPLOYEE
count
ry
Single-valued
Attributes:
Contain single valued
value.
Multi-valued Attributes:
Contain two or more
values.
Gende
r
Employee
name
city
person
hobi
es
Stored Attributes:
*Stored in a database.
Derived attributes:
*Not
IDENTIFIERS:
Identifies an entity
instance among other
instances In entity class.
ENTITIES:
***ASSOCIATIVE
Exampl
e
PERSON
HA
S
CHILD
ASSOCATIVE ENTITIES:
Type of entity that associates the
instances of one or many entity type
with one another.
Degree of relationships:
The number of entities in a
relationship .
Types:
1: unary relationship
2: binary relationship
3: ternary relationship
Unary relationship:
Binary relationships:
Exist between the
instances of two entity
types.
Types:
1: one-to-one
2:one-to-many
3:many to-many
One to one:
One to many:
Many to many:
Ternary relationships:
Cardinality constraints:
The maximum number of
relationships.
Past paper
2010
employee
jobs
department
equipment
suppliers
project
numb
er
name
DOB
Phone no
Date of last
meeting
Project
no
Project
name
nam
e
Project
cost
Addres
s
duration
Conclusion:
To conclude E-R
diagram is a graphical representation
Of data in an organization.
It includes entities,attributes
and relationships.
We hope you
liked it.