Professional Documents
Culture Documents
DBMS
DBMS
Exarnple
Recenty we worked ith a high end aponts
cub. lhey nene tooking tor aa system to naek
Ospect5 of their business . incuding
membenship fees, faciuties. pogams. and
nucn moye
DBMs - 3
Studen
club 1o)
hany to momy Reloions hip ,
H mang to moy Relation ship is 6type of
Uand inauBy in System analysis 4nat deseeibe
the Re laionship between 4wo entities
In This relation 6hip, one entity A,nany
have a panent instonce that hos mar childr
-en in another enity . B.
For EXam ple ’ a Customer Can place mutiple
Ordeos in an oden table, and an ord er
may Contoin one moYe instances of a
SPeciffc Produet
Autho-Book
Juncion Table
Book
Authos
Boors Avthors
(8) How ane t e Droble mes Coused by multíp
Vawed ontnibuted esowed ?
multivaued
Some athen Noys to Hondel
attnibutes
multivelued atikoute to
O Extnact the
a ne tale
Leve a Copy of its Primany Key with
the original 4oble.
notation.
Vse multip1f eity
ween
OIncude an intermediouy toble be
table s wiHh Just 4hein IDs
4he t o
DBMS 6
ane existence
dependent because thein very
of a
Existence hinges on 4he exis4ence
entity in a strony enHH set.A
Corr espondinq indepen
entity instance Cannot ex13t
Wearc
denty. T&is dependeney 1s estabishêd
ship beween
a one to may Relahon
4nrovgh nd eeK entity sets.
tho strog
Representaion in ER Diagram
se visuol
EnHry Relaionship (ER) digrom s
oatBroibutes,
eni4ies,
Symbols to depict
nd elaionship .
Exam ple -
we hove
Conct dern a database fore a ibay.
6et calle d Book.ith
strong enity
attributes IKe BooK ID (Primay Key)
1741e, Authon, etc.
authon
Hoveven, a booK might hove muliple
his, we Could Cxeate a eak
To nodel
enH set Coled Authors with attributes
iKe AuthorTD /Pantial KeY), AutherName
that IN Coumhhy 'Indja' He
4he
Plights -ouirport-loae
whene
Nome) from openotor
hêre is PbYary
ountoy 4erbie
Representation
, momg)<
p)Relationshi
(Identifyinq Authern of
numbes porots
Authen) 4em
+
PoTo our
from the The Fight
o
to ,(AuthorID
(one (BooKID,TiHe, Air (Fught))
-'Tndia'
all ) he
he
india.(o from
Fught flight_umber where uay.
select
> 4he
e
dicram s
Authors thefrom Code firsttoble4hen
monrom
,Explanaion
ist f4 (SELECT port
ER o we we Sugnt
BooKs a. +ake the
Ihe Air 4
’ in
10)
DBM.
ist
trom- ir Portlode is Py esent in 4he
idian oY Pomt Codes 'retrived
of
e alier.
who ane
List the Posengen nho no ig ht umber
ne no
Exp\anatiom -
o operator selects res ervaions from
0 The
votion toble whene the fightnumboz
4he Res
is e auel SA T44