0% found this document useful (0 votes)
27 views9 pages

DBMS Unit 1 Part 5 PDF

The document discusses key concepts in database management systems (DBMS), including primary keys, foreign keys, candidate keys, and weak and strong entities. It provides examples of different types of keys and explains their purpose and properties in 1-3 sentences.

Uploaded by

RS Gamer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views9 pages

DBMS Unit 1 Part 5 PDF

The document discusses key concepts in database management systems (DBMS), including primary keys, foreign keys, candidate keys, and weak and strong entities. It provides examples of different types of keys and explains their purpose and properties in 1-3 sentences.

Uploaded by

RS Gamer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Klatton Ship Tyke

pufek eulena he asociation b/us


entily tayfes
En raleol n
a ulei onetip het eatk
bl nYy yp hdent anol Cowrse

Shclent Cntelled Coirse


4fn R olioguam ulation Chip tye i supuertadey
,

oahnono
a conreetig Lines aeihA entll
Rilati ensAip et
ut / ladion Ships Beme y km
km o
n
as latiorship Set

s2
a
o Rlaionruip S t

antiky pouti i poting în a ulelienihip et

nY n - aAA
fuoo elb wes

oher Onby on enty Bt à prklir parli cipating n

Kmaaiiud
to
n-an lhin n emti Lis e Pndii
a lalbnehip
parient|

Muicine
Dectes ui'bes7
fauticlpatior Conk aint

Total Pauli cipouOn Eaon enly n a ev y Het


wst pauticipate In he ulactionship. e eeh
Student
Stulent semwllil in a
cowse, ne peUupala
o sudent uiil! be tatal

tauti al Pautici pouli On evtN


etity f he

&u may o f not Pauutiei poti in lelenstip


I som coies a n n a en ratld by
any
Shidin, he Paui cipeti on conse uuU bu
Putia

h
Shdnt Cnrally HCouse

ueek StrOne
h e entty su3 uahich olo nat Aae zdjttentt
a l i butas to faum a Ruiminy dy auu
cs uak catity Beb.

d s wsak miies do not hauue Rinaiy kiy , khay


Cannal oleri fical n hei utn , 8o hiy olepenul
Cn lome oha èntity. Outres erdity).
leek ennti e
pauli al teuyt.
ueek entky alwuys thas total pacticibetio
but tr Ong enHly may nol fatal
hau fa lal
pauticipeion
(nami
Ei
TLoa -Weak
Custom Bussou"
enu
Strng enti y
enti Set poutiat u
P y n

(RmO
olat

Loa
a
PRYmávt, 7 Ptmnt

Heys in DBMS

a set
atlibuts efe attiibute ushich 4elps
peo iltntiy a suow
Ckpe) in a.ulain ( jable).
ind te uilalion b l
keo lakls

Iyks a ky
Sufpes Puimany
amel oluti dlternatu

Fouuin Compoundl

adrs ogatu
lomposib
Supe ky a gucup 4 Singlt
kahlu.
wwhie lolentifis
ious n a

muliple kuys aoloiuénal


attskuts that ar

baue
Tolentyffeation
net nuedrd
f o fe unuyu
EmpName
Emp SSN Emp Num

Cupuhuyt
ky
Canaliclale ku u a Aup ky uiih not
kufpeald atluikutu."
Jhi Ruui maiy ky hould bo slistid fra h
cOnolate kiys.
4 Callol as minima! &iup K
Jable musl hau alleast a ingti canolicdat
ky hau
4 hable Ca mullyRle candidale feyp b t
Cnly a Lingle RLuinH kiy.
9Sudtent ?S nm, Rol no, Baneh, Prem, , Add,

Caneliolaste kf Roll no } fs.nDme , D0Bf


Must COntain umiqu veulud
May heue multiplu attiheutu.
Mult nat twntain null vulus
hould Cenlam pminimiu felas Ho emcise

wmtguehe.
Caeh epred in a kable.
CWmiquely udenti*

Puimasy key a column uo sfcolne


n alable thaut umiquely ielenti* uny "o in hat

h
Puimaay kuyp con't ke a duplicak mianirg
valu c a n t apbeas moAL mam once in à able
nal haue mo0%e han One Reuinai y .
Aboue e Ruim Ry
ke nuull
ulmy e l i t cannel
vauL n a puimaiy ku
colmCan niueA be
to
u p up olatid any fouuign key suefeit
mocliel
halpuimury f
uy table
apll Ca hau
uim wwt but Cnly Onmuliplu
mullipl chas
Can
cheicw
be set
Lhe Duimeky Kuy Hhe
uys whi
az
puimog hug a cA
ch ane
a e not
am altunat te
stiol Rollaof. neme
Primary LremeEmail
l 4h ree
wwi qulyca
But most ulenti fy LLLD
ucorok
rol in a dable.
appropuiat
an aiesnate kus.
d St.io a
kuy. So, otuus
So, ouAs

Fouign kuy- us a column hat


theatu aa
b/w Joo tabls. Jhe
uelationshipnlaticnship
puupose foeign ys is to
main ain daia negu and aliow
nauigatu
Dlw twd oenent inslanus
CoS- ufesence
an
Cnti ly t acs as
b/w kuo tables as Tt
efeaeny e
pimay y @nohe able
abe 1 Dept Coclu, eptame
Now to kucuo
Jable Senehid, F name Lhar ehich aeulty
,
w Cule in uehi
So, ads Jonegn ky dpt: twede to dable. dupt
s o knaaus as
Ry/enetial Tntagei
COmpaumd ky - t has tuwo more atlubuts hat

aktow yau o wniqu eognize a e i C iLon.

Or-No Protret I rooluek AJame


MOuse
Suanti y
ABC123
Boos Xyz 45% USB
Boos ABc123 2 CO Onitor 20
Xyz 123
BOo 2 PORI23 Kas e a u u n t e s

Hww 0h- no,


roduetld Can't be ° kuys Hccweues ,a complnel ka4 o
O L rotustsl coud ed as ft untquily idetifes ehekAit
lombi'macli on a/ hwo moi Columng.
COrybie
compamd and he posile k
ale b/
eren
past the
ae
The pat
Pan fhe copoend ky an 1oer
any
hat
Ormpoi7e .key a y o
cOmpote rmay mat b past
he
kuut
h e fouegn Rey.
Surroga key Aso Calli dymhelie puiay ky,ig
a neL McOsd is
Jenisalel ne
tueh
Inzertiol In to a
abl
a data base hat lam he eloua a4
auo matcalkg. vebte.
he
Vhe puina kay g
hL hu Seguemiéal ho utsicle the olata base uat

4 Jn Case wle do not hau a


kuy natsally, en we
nLed to antiiialy uae One
1n ouolen to
în lakle.
umigue
iolsndity Teus a

Featuru
utomali eally gntsaleet y the dysii
9t holds anonymaus intiyen
he valu 7 ca neue maot eol ky he seL O
afpicatio
4 conlains wniqu yalu 10k al surwids
/ he leble
called fatuss ky as it i aclelual
ease
juut fo
COnttins no
Polentfation e/ unigue valus anel
tele vant fat het usfel fo Ha kahlu.
Scheat 3
Reg- No Name
euuntuye egNo Name Peteto
90 CSIo Reken 78
202 Cascl 82 CSlo 2 K R 2 t
203 Chik 80 CSlO3 Pranav 92
Ro4 4
Kelyp Csloy Rishika So
*****
Me
Uam
PesnLtape
20 2 Carl 82
o 3 CAs
o Kon 74
CS o Riohan 78
Cs lo
s lo3
wkky
Cs lo4
Prunav
Po

koulgn keu
eumauy key

£R diagams
o yebles
ebly

Kecdueto
ltts/pu.t
sit h r nly Simple
strorg Entiy
Rule ol: Fo
Melati enal model
vable in
Reguie only One te attukutes
able uile
t u butu he
attiku
entiy & ehLe uil! be
Jh e he
enti'ly t (Rolng

Shualint|
Schima : Shuolerrt (Rollne, Nme,Sex)
tt aktaskis
Entiny s t wih tonpoR'
Ru C2 Fos streng cnpoile
conuwuior, Smpble
attibute e kae
whil and n0t h
Qe vekn ihto aeccomin
ettai buut
compotu atlnibute itseY
(Enam - r r

r e e

Studmt Relno, Fname C-rame, HOuda -ne, St reat,


L
,

C
uln
conain all Arpl atli hut
lablt, uill
Me puiruy key
all mustivntu
tha lable ui twnlair ha 1hy
auibulu
lna
Ciy )
Roll no., Chudh
Rolln MobiUMo)
tnio a Table.
Reladionthip
Rult o Juantlat/g au abse In a

Aut uilll tgui


A A ulalionunip
Helati onal madal
e.
a uu a b l e
Jitaibulu
e pasnipirg tality uba
1 o ku atnibutu
ousn olesuipalu alhibutu
oliuapHve atuibut
uiuL e 'h
Sd af non

Erpuay
pantma
Salet

apt. 1 d i n u )
dbenaldars In iEmpno,
Ships uth Canali'raliy
Rule o5 Fo Blnasy Relaiion
Ratles
Casu2 Raro aa tp mn
ai,a2
R Ca,bi)
B CbI ba)

A la,a2
BRCa,bl, ba
Case 03 a
A R (a4 2 , b 1 )
A
B (bI, b2 )

Cosey
(a1,à b i)
AR
gh
ath
B Cbi, b2)
OR ACa1,aa)

BR CaA, bi, b2 )
Kelau r ghif2 uin boh tauirolily
ule &: F Binay lonsbupit
ouutiipation
Cnstrant anul

CoAe ol Tates Pasticipai' pon side

Al, a)
A R B1
BR Ca,b, , b2
atas poicipation
Cox, of 20 ea. nous
COnstrauint,
NOT NULL
bota 2ictu.
Total Pavaiipatio from
Case o2

ARBCa,a2, bj,ba)

uith ak ntis
uelationthip
Rule07: For biany in o e c a t i o n
appeaes
leak eutily set alwys
utith hotal peutiiiph
lationáhëp
whta
olendiy
COnkauut
a)
(be
A Ca,a
BR Cay, b,,ba )

You might also like