An Entity-relat-WPS Office

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

AnEnti

ty–r
elat
ionshi
pmodel (ERmodel)descri
besthestr
uctureofadatabasewi
tht
hehelpof
adiagr
am,whichisknownasEnt it
yRelat
ionshi
pDiagram (
ERDi agr
am).AnERmodelisa
desi
gnofadatabaset hatcanlaterbeimplementedasadatabase.Themaincomponent
sofE-
Rmodel ar
e:enti
tysetandr el
ati
onshipset.

Component
sofaERDi
agr
am

Ther
ear
ethr
eecomponent
sofmi
s

1.
Ent
it
y:Anent
it
yisanobj
ectorcomponentofdat
a.Anent
it
yisr
epr
esent
edasr
ect
angl
einan
ERdi
agram.

2.
Attr
ibute:
Anattr
ibutedescri
besthepr
opert
yofanenti
ty.Anattr
ibut
eisrepr
esentedasOv al
in
anERdi agr
am.Therear efourt
ypesofatt
ri
butes:
Keyat
tri
but
e,Composit
eattr
ibut
e,Mult
ival
ued
at
tri
bute,Deri
vedattr
ibut
e

3.Rel
ati
omshi
p:Ar
elat
ionshipisr
epr
esentedbydi
amondshapei nERdi
agr
am,
itshowst
he
rel
ati
onshi
pamongentit
ies.Ther
earefourty
pesofr
elat
ionshi
ps:

1.Onet
oOne

2.Onet
oMany

3.Manyt
oOne

4.Manyt
omany

Exampl
eofERdi
agr
am :

Lastname

Addr
ess
Fi
rstname Name

St
udent

Rol
lnumber
Phonenumber

Cour
se

You might also like