Professional Documents
Culture Documents
Adobe Scan Jul 27, 2021
Adobe Scan Jul 27, 2021
PAGE NO
Reverke a Atig..
SELECT REVERSE CSQL Tukial");
Ci3
REPEAT he REPEATOunctin hepeah a string a s
many tinns a Ahecificd
Spstax: REPE AT (Strins umben)
Ex Repeat a stuu 3 times
SELECT REPEATY SQL Tubrid, 3)
3 F1ND-TN_ SET:he FIND-IN-SETO Gundtien
hetwn the beitin a dting
within a liat of Atnings
Syptax FIND TN SET( Stuim stiug -List)
Ex: Seoaclh her q uithin khe Lut of bing
SELECT EIND-IN-SEI( S,,
Numben Funtieng
CL SUM The SUMOumctien Calculates the sum ea
set e velues.
Syntax:SuMexhteulm)
BRelwon the3um efkhe QuantityulA in the
he
Onden btaill Jeble:
SELECT SuMcQuantity) As
To-tal Ttems ulered FRoM Onden Detail1;
AVG h e AvGUumctim heturms th
Qvenage Value
Stax AVG Cexpsueim)
Ex- Retyhe averase value or {he Puice Colummn i
he Phoducts table:
SELECT AVGCPAice) As Aveg qe Prrice FROM
Preduct
Teachar's Signatura..
fG..rresenantrnd
DATE
PaGE NC,:
in a ket o Valutk:
Syntax: MAX Cexhneuin)
E ind the bice ef the metf exheniiephoducd i
the "Pmoducts" lakle:
As Lazet Brice FRoM
SELECT MAx CPnice)
Produch,
metim netims h e minimumn
C MIN he MINO
Valu M a det of Values
Syntax MIN(exteluien)
tu
Ex Find the puice of thecheapest rreduckiu
Poduct lable:
SELECT MINCPrite) As SmalleAt Pauce FROM
Pueduct 3
T53C0UNT he COUNTU unction hetuwnms the mumber
e hecords hetumed by a deleCt 94uehy
Sxntax : COUMI (ExhHesLLon)
E:Return the number o produch in the Produsts4
table:
SELECT COUNT CPhoducl ID) AS
NumberOf PhoductsFRoM Pedducts;
LG1 CEILTNG The CETLING O functien hetwm the
Amallest utesen value his i hiase tham
tha
h Caual ko a numben
Sntax:CELLTNG(numbe)
Teecher's Signature.
.
DATE:
PaGE NO.:
Ci&)
ROUND:-The ROUNO function heumds a mumben
koApeikied number o decimalblacek
Sipatax 3 ROUND mumbeh, decimal)
E Reund the numbe o decimal places
SELECT ROUND C135.3+5, 2),
TeacherS SIgnature...
DATE:
PaGE NO.