ae
0
o
4) commi ea
eS
Le
WN
ee! Rone rz HG hues
ae caisect Dale base
See © Assionment a pronagement S¥S&M
Explain detand tel commands
Tel commands in SQL
ee
~chexe axe mainty three tyres of Tel commands
im sau thal her Uses fo Manag e Lyansacken
ahese 3types of Lyansaction con P20 2NQ 109 @
commands Gre:
Q@) com MVE
@ Pert hace
G) gave (ete
.- the comme wmmand altos
Lhe thonges mode im the
users lw Save
CUsseN t Exonse ek 1,
Syn’ corns 5
we
hack we Rott back Command allows
2) Rott
BEG
users be unde the change mode ty the
curssenl- fan screen,
Save Poll batkyeae
| Save paink' the save rant command alty &
ean
poses Mla) exec le
Sune ave poin kb |
Decl commands in sQu
GG ee
| Two tyPes of ocl commanis con be
used by the Usex jn SQL- these common
axe tsecul CSPeclONY hen Severat bsey
attess the dalahose tl Vnabie s the
| ciminis trator to Manayeaccess Ton Exel
Wie tee) Cares bo EO CL cammen ses ican
GS Fertouls:
— GRawt
—) REvixe
GIRANT command
1 Ww ESTE
GHAAWT, aS Lhe Name itS ert SUQGESES Provides)
This command atttws the administrates bo
Paovide Fowticuoy Privilege s or Pewmissting
over od database obrece, such aS a Labie,
VER LO¥ Pyoced ure. le oN Provide usey
CAecess 40 Pexlorm cextain data tse oy
©
& Pon wWhhin a ec)
Lyansackyen to which You Con Na key vot\ am
|
\
cumforenk oPewakicns%
FCaRAwT SELECT oN Studenk To Ale6s.
wo
AS the name suggests sevoke 1S te lake
Revoke temmand .
|
|
ammend enabtes the |
aes - the REVOKE
data tase Adpinistxates te xemave Khe |
PrevibUscy Provided Privilege S oy Pexmisgns!
prot Huser wera databose ow database)
obteck guch as G& kakte View -Os brecedusd
she REvoke command s Prevent the “Sew
| from OC esSiNG ov PexFoxmiNg a speak C
| operates BON etemenk fn the datuhase
| =mpiem ene) REVOKE Command
REVOKE SELECT gn student From ates:
| this witt sto P Ehe Usey amon bxom
| imPremenking the select query on the.
Student abe. the uses May ke
abre leo tmptemen & other Auexies wy
datobage
\
|
|
reducing ex diagrems te «eee |
schemo
|| - A
| ~
| Convex 1M ER diogxam bo schema droma® §
@) HE oY &
to
ES
ee
Se
Ny we -
| for Con convex Lhe Ea Me cashes
| tobe s anh wiamns and wsetan the
Imapemsy blu tables: TUE 5 Lyaeture Foy
given ER dtagra as below
———_____
sabrecl
sabseck i)
S tudent-t9 Leckarer-(
Stadent nome subsect tam
Lec hanes nome
ie Course uf Lectures
Sescee
ecky Cousse
State
PLA) Couyse- tO
Cases ef Couyse- NOME
Slud_ Cobb
Stadene ip
Hobbywt
Ne
Whale i's posmart-zakten ad exoin 3 OM Mariey
» & FE oeattont rael) 3
|
VA Nowmaiza Re\ |
ate Se |
Dal dund dotabe |
Nola wsedundency In dababose yekexes bo |
J | the unnecessovy duptakten of data, |
Tk Con oyise from Pur doakabause de sign |
AK Atk OE PracPew MoxMactrs Cow. Hedund oney
Can cause severat 18 Ses? |
pato. anomar eS
ey
hese axe inconsistencies thak arise Aeon |
| be xed vndancy
J update Anemone s— when You hace the
same Piece Hl dak Skexed IN Mulkipte
| placs; UP daking LE EM wMe PLECe com lead
J he incensistensy FECES poe ardoted ereyy
whese
_) ansexk onemarie ss Mou misht hove bea
ingest sedundant doke oN Mutlrece place Ss, |
tea dens, be Meu sis FENCES, i
|) peretiel Anema? eS deieting data in one
La bro right poinken Honary weMeue necess aay
da 'o tmak’ speed ed @tSe wherea“ ~
Q) | Explain fanekienal dependences Cuil Ss
( | Crerortks .
c
ARN \
| pA tanctionat dererde ney occas when one
Faktribale tncquery deleymines anothey
® Fancteenat dereadency
aktatbuke within aq vetakrean, Thisg
con staatnk therk descyibes houy UkExtbu keg
VON oOo bkabe retake te each © they. TLattyibuel
A fanckion gy deleymines ataibule B
Ge wyike Chis as the ADR
j Fanckinat detendeney Gee used by wokhe
| Malt cars CXPRESS wetakieng omeng
[dolatose cites and axe VEY obs teanl
be understond ing Odvance
| a anced eS th
TROMTMIMAL Agra No
SS esis
ee | yotuhe Dome | dert-tame] dread |
ps ake co AY
| 43 Puy te AS
Ky Hie No Co AQ
4S Yo. MS RS
Ke Mo Sc Ba
uy Ve | ME Boifs
eran Bt Lxees Lith examres) 5
Bt twee 18 avosiabion of the B- bree
dala Skeuck uwe WO BE Exee gator
pointers ove Slexed ONky A the Leal
pades DE the wee. Ma BE Ewee Shrutkont
pea lot nude drftexs xem the Aes aie
wo Linkexnot pe wede, -the eal ho des have
ON NEY Coy evag value o Hehe Seoech
fPrecd ateng witcha data Painter & He
recxd. she leat nodes gp ethe Biebyee
Gre inked bagethey la tuvide oxderel
ate ss be the seach Field Ehe ve Ceyd g
Tn keanat Nudes gH Bt Kxee Gee USed ty
Guide the search - SMe Seoxch tedd VOW,
Rom nels Tee ides axe ye heated a
the mex of Modes o& the BE ae
styuckuxe of RK beee
a
|_y jn weno hedes > Gonkatd keys and ack
So. guid e ty byaversiag Ko tye a
-) leat nibegr- Sexe a the wetyar daar
Ghd awe ttnked ke each bthey RY
gequenvat baversatA S&S
i Ne
Example obo GF eee 2
Wen SS S>
Jansesting Ke S PCW pee 80 (Mor SOc 60, ty, Vad
Yorro) x
aS Elo ree 30)
1) inkexfot node 2 C303
Leak node 3 Ct, ee > C sorte’) |
—) tntesnat node : C30} |
bee t-hede s 4 Gdoe 2eptes iment acne
Tho} |
| a 5 bo
J—y cntexnat node S T3er be |
eee \ |
Clore} Cgo,uo 150)
Leattr deste |
Cos 1 Borae ly
‘
(6) ExPlain Acid roPeatre |
| f |
pA bwansactien is agingle regicat untbo Ewer k |
Lhak accesses ANd Pugs ibty madifees the |
contenesS Ghadakahase, Tear Satter aceess |
jdako USIO> reod — Weile oPera Mons xy |
moantar® COMAIStENGY Tg data lyse (he foe |
and afew @ LwangactigA © COSEAEN Pw Pentegs |
yued- these qne culled ACW Pavrertees |
Hosethom tity ‘-
Bee
4 (BY this, we Mean thal- elthey Khe enttse
“LE Eeansactien lakes Place af once. ov
J} doesn horeen akalt
concides the Bawoalng Lyanga atten |
Gap gh SOY CETL ON A Tre byans te y ob
LQ Beefr EEcouad te Kl BELO VRE NL
IpetaesKy Soo OO
Twa Sa CHANT
eset) ee |e Pict rae
| Ready) peadty| |
ye K-60 | ye 4 boo
wri ke ox} jo Sees)
L pElexsh + 409 Ne Buu
Consts Ney’ —
aaa
shis Means thal inkegriky Wastaines ene
be maintained fe that the databese 1S
aunsis ent befeye aNd BEY EXONS actin)
okat eRe TECerssS = KA Free <2
qylal GMEY Tottuws = hotStU Sag
= the dalahase TS GMs sent, Tn enstskene
ocewss 10 erse tr COMPRES bE TH
past AS AWEsKe TAS tncam pre keTsotatin'=
nwnw”~