DBMS 3rd assignment Upto question 6
DBMS 3rd assignment Upto question 6
updati0a adetlon of da a
S0Lis wed in vanous advance d Re latina databas
JNaaaqemaat System( RDBMs) Some Commaa ROBM
that
Acess Mictosoft SgLSeeSybaseloges cLe
SoL is developed biyIBM part f System
K proest-in 90.
ChastGkeeistis-of SL
- SQL is ao ANSI TSo slandardicemputer lasguage
for caating manipulatiag elata basuy
SLaldouws thuye toicaate updete de lete
etriee data fom a tette databae:
The tokans y syotax o sqL an ariegtked from
English commaa speech to leep the ccces barie
small possLh le Heace itis ey simp le.
to uan
AL the keyu ords 0+ sgu Cen be expe1e n any
Com binations of upper lowm case Charaeteat
mak no dlE Fercace whethew UPDATE, update
Update UpDate ie the keyuords
sQL is declanative longuage ioot a proca d ural
ny pouzfl longge
SQL Drks wit h dato bas pregramy lte. DB2
race, ms Access
Advaa+
High speed - SgLquemey can be wyed to fetieu
amounts. of gecads quicky 7 effrdsotly Irom a
databye
2
Lo
iv) Delete
As per quiiemets , the ecody from eis tíng
tabl caa be emove d uging de le te comman Dele te
Comncnd con have whe clause optlonally
Aggga te fcoactioa
) qqaeqate tunetions ín s L
Agprqate tunctions peafcrm calealation on 4
set ofvaluel k turn a Single eyul Commen
aggegat toactiang thclude 't
CouoC(Ounts the aunhex o rowS
Empid emp-oame Ad dr
kunal Camp
Jay TÈlak Road
E3 Radita waje
Bagar SB Roa
ES }upnya
2. Aso in mul tluye System , iE Moy be posihe
that more Ehao one us mcy wcanL Lo updu te Ehe
data of sume Lable, Consider lG aurs A
want ko uplate, the enploy tobe, Io Such
will make changey in thei Gespecti
Vicws, & the spccti, changes
bas table automa tically
total-employee
Data
Paga
2
Sum CO To tal Salay
Ftad the total Salag pald to au emploges
SELECI coUNT(1), AS tota! Salor EROM Empi
Result total-Saley
3SoO0.
pesulk highest
70000
salag
5 mIN CO-LouestSalam
Flod the lowest Salog in the company
SELECT MINCSala AS loweat_Salar
FRom Erap)
salay
Wnte y explaun SgL functloo & proadus with
Sample examp
i)
Queny
) Bu t io Fuac tiong
Bult n fuactiun. nothiog hut Ehe fuac Libng.
which ane pre- de ined by S
Qutput 16
2 >
ABSC) lt etumy the absoluto va lue
6utpute 1s
QutpuE:-5
output phacx
2- UpPER CSnng)-netumy the senng fn upperlcuye3
SQLs dect uppe (" phoeni) from dua')
Output PHoENX
toitcop
SeL Seleet pper Cename)}rom emp
outputí Phocaiy t
{4OENLX
De
DELMTER//
CREAIe PROCEDURE DeeteEmploy« CIN emp-jd INT
2EGIN
DELETE EROM Eomployes wHeRe emp-id emp i
END /
callig theProeduei
q)what is bogge
Eniggee ? Expla'n tngg wit h Sutohe
example.