Professional Documents
Culture Documents
Zensar Esd 2
Zensar Esd 2
RON Studuent
WHERE (mI + m+ n5)/3> D
OCDER BY Co Iname/s, expreiion /S, Column- Aias *
single Roo
(Velue unction ofP
ingk Value
Mulhiple
Nalues HolHi
(Rouss Kow
Functien Sinyle valu4
unction ypes
- Anthmehic: herks teth numeruc. doda values. Ex. ABS,
SiGN, ROUND,TRUNC , CEIL FLODR,
MNDSIN, (OS, TAN,
Pow HOD,-.
ohanaekrr data. tx. ontaf l
-S tring Weres with
Couse le th,lcos e,ltim,rt
sL,S7s fMmIpod,Tpad aubsmjdr rev{se -tc
28
Dctte Works en Pate 4 Time fal vaue
-No.Curdate, DATE(d),TINE|d
ADDDATE (d, INTE RVAL vodke unit), DAY,
ONTHYEAK, ----ete.
Amit So red 87. marles.
Sumit scored48/ mor ks.
SECECT Aee, con Cot Iname, 'sco reol, (mf+ m2+m3)/3
marcs. FRoN Sude
SELGCT UCAIe[ name)
from tud@f,
)sELFCT n id (Ami f
Kumr',1,4) => ret T
S -'Cmit
lengHh(s) => 8
14i m, rtrin,trim trin off spares tom leH/nolt /both
ends
length (rhim ($)) = => lenth ('amit') =>4
DATE
sELECt NOW D,
display
Friday 01, Sept 2022.-Wonk to
Date Fermat ldedevalue.,md)
fmt a-> Sun,fon Tue
7b->Jan,ab,-.
-m modh 00-12
. N-Januny,febuauy
d/ye> ay vaubut ol to 31/1 3
P-AM/prt
h Howy .i Mnudes S Sebnds
Y.D day wih suthin Ist, 2nd, Srd,-.
y ->yea e y ->yeor to2]
DATEDIFF (dt da)
Mult Row hunctien
H9a negoation
Count
8um
-mln
mo
He- Wark
Prachee SELECT Command
Cxprexm tuntto 9ules
1elo2 30
null valuus ont not 4ed in exp- =) nu
To were with null values spl openator is
9iven n SeL > 1S alo we 1S NOT
SeceCt from studene uhtne clonamt 1S NUU
Converting null to value TFNULL /nullvalla. ,to.volv
select 1 FNULL (null, too);
Select if null mI,0) + Hnull (m2,0 )as ' Tlal' {rom
hudend
Seleet coUndLifnyll (m3,0) from Shudent
Conwer tig null to vaue JVL (nal. Valut tevalue
t-selecf NVL (nu ro) from dual
Selecf rl (mi0) + nvl (m2,0) ay' T0TAL' fom Srtudent
Selec count (nvl (m2,0)) yom
Studeut
clakmater Student masten
TolLno int PK
clas tode Int Pk hame VC (so) NN
clas nan VC(30) N gender C m
bdate DATE
city Ve(30)
elak to de INT FR Rebunas
clo mster
OR
Select roll,hane tlocr (daediff( nouw), bdate)/36r
poo m \
a tom studentmater
a
2m
ukaht dabcdith (new0, bdade)4
Retueen 24 80 000
0ader6y
omur?
0
(v mwop
Perth
-Norual THn
1Hs Hupe mihjo1n
no d +o speciby Crutenua
H ullGth toble on the boe 0ommen, Colum
haunls Anengcudles
UsING (tolumnfAro/S)
table is jeinad uith I'selt
Self jetn: hon
etnaet aj a,claumaen
Qsb
2-nner Jein: select col hiot fren foble 1[one)
select a roll, b-dosnamt. trom Shudetmat a Tinne]join cla,
Natural Tein 29No need to spechy j crikerua. Ona-tlautede
b
einnghloeh plae en comon tolumn name/s. cl68ode
Her o tnner
agR,b.clas3 nanm Dm 3hudontmas
/36
a-claM code b Clasxede rdex
eloamaaHth. b On
Jein
Bb.Cloknade, q rollnD,
by