Presentation: ER-Data Model IN Dbms
Presentation: ER-Data Model IN Dbms
ER-
DATA MODEL
IN
DBMS
P
R
1.ENTITYRELATIONSHIPMODEL
An entity can be a real-world object ,either animate or in animate , that can be easily
identifiable . For example , in a s c h o o l database,students,teachers,clases,andcourses
off e r e d c an be co n s i de r e d as e n t i t i e s . A ll t h e s e e n t i t i e s h av e some attributes or
properties that give them their identity.
●
Simple atribute−Simple attributes are atomic values,which can ot be divided
further.For example,a student's phone number is an atomic value of 10 digits.
● Composite atribute−Composite attributes are made of more than one simple
atribute.For example,a student's complete name may have first_name and
●
last_name.
Derived atribute−Derived attributes are the attributes that do not exist in the
physical database,but their values are derived from other attributes present in the
database.For example,average_salary in a department should not be saved directly in
●
the database,insteadit can be derived.For another example,age can be derived from
data_of_birth.
●
Single-value attribute−Single-value attributes contain single
value.Forexample− Social_Security_Number.
Multivalued atribute−Multivalued attributes may contain more than one values.For
example, a person can have more than one phone number,email_add r e s , e t c .
Relationship
The association among entities is called a relationship.For example,an employe
works_a ta department,a student enrols in a course.Here,Works_atand Enrols are
called relationships.
●
RelationshipSet:A set of relationships of similar type is ca lled a relationshipset.Like
entities,a
Relationship to can have attributes.These attributes are called descriptive attributes.
●
D e g r e of Relationship:The number of participating entities in a relationship defines the
degree o f
The relationship.
B i na r y = d eg re 2
Ternary=degre 3
n-a r y = deg ree
Map
ingCardinalities
1.One-to-one 2.One-to-many
●
ManytoOne
More than one entities from entity set
A can be associated with at most one
entity of entity set B,however an
entity from entity set B can be
associated with more than one entity
from e nt i ty s e t A.
● ManytoMany
One entity from A c a n b e
a s o c i a t e d with more than one
entity from B and viceversa.
SYMBOLSANDNOTATIONS
SYMBOLS MEANING
● ● Zero or More
● ● One or More
● ● One and only One
● ● Zero or One
INFORMATIONENGINEERINGSTYLE
USEDINER-DIAGRAM(cont.)
Many - to - One
SYMBOLS M E ANI NG
●
● A zero through many on both sides of a
relationship.
. ● A one through many on both sides of a
relationship.
●
● A zero through many on one side and a
onethroughmanyontheother.
● Aoneandonlyonenotationononeside
● ofarelationshipandazerooroneon
theother.
● Aoneandonlyonenotationonboth
●
sides
THANKYOU
HA