Page No.
yash Mewada
Su~ be
Semester —44
AW cae a a Th
BA EN ea
[ENTS ES) Es ASIN
A (a
Lh V
ja ZAERO)deptno i
eusne oes | cei ae CDF ORME Ugeys, ee
NOME vi
oni Ga
work Varchax (255)
Ds
in exting yecords in Yhe table
insert _into employee Values
caval oY -00° ‘2 3-Fee-201b', Fi zy
S.
in seat ito employe values : = :
COV 46" ‘sues ','25000.00505- jan-2020,' HR } }Date:
6.| insext into employee Value
DE a eae me rs arn al re
eption'),
7 x imto \ c Value
Car’ 47" , ‘vik vom") '2.9000.00, '15-dec-205" ‘Sales’)
hn nsert into employee Value 4
Geena OO. \2- jan-200' +
‘Ney kK*)§
insey into. em Ployee Values
(25° (ax aids "146.000", “O3- jun=202" ,
Cmorke. sng") 5
sa ES eee ae OO) nyc ease
| DEPTNO EMPNO
2
5
a
SALARY JOININGDATE WORK
0 iin 15000 12.AUG-09 cee
2 a amt 25000 SWANS HR
2 a aan 20000 21.0CT:19 sales a
— 23 “ asiya 2100023 FEB-I6 finance
2 4 suresh 25000 OSuANL20. HR
|— 2 «6 astish 30000 30.UL46 reception
|_| 22 a vihram 20000 1S.DEC-IS sales
Ey a ny 1500012 AN-08 ek
|| 38 “a idbi 45000 OUT marketingotal eal | lou ee
WwW) = 5
| | DEPTNO EMPNO ENAME SALARY JOININGDATE WORK
|. » rn er
2 ee ee ee)
ert
Work ja o ag cleyk.
= Nect ¢ , Salo
emplo
wheve _woxK = “clerk's
|| EMPNO ENAME SALARY
i 40 itn 15000
“ ay, 15000Date:
2 ee of Salary « = =
>| Select *
From emploue.
order oy Salary deces
DEPTNO EMPNO ENAME SALARY JOININGDATE WORK
1 25 3 nicht 45000 OSUN2E marketing
4 6 astish 30000 30UL16 reception
me a“ amt 25000 1AM HR =
i 24 6 suresh 25000 05.JaN.20 HR
23 “ astya 21000 FEBLIB, finance
| |2 2 azn 20000 2LocT19 sales
2 a wiram — 20000 1S.DEC-15 sales
2 0 tin 15000 12.AUG-09 ert
[20 cd a 15000 12.JaN.08 eek
A) Display details of employer whose name
ends with ‘N°’.
>| Select * x
OEPTNO EMPNO ENAME SALARY JOININGDATE WORK
0 tin 15000 IZ AUG- 09 ‘de
2 2 aan 20000 2L0cT-19 salesGelect Count (2)
from emPloyee
couNT(")
9
SBP) BD TOV Rc ono
>| Select Sum(salayy)
Baa nine Se
SUM(SALARY)
2216000
7) Display details of employec Joined after 2010._
Sele ct *&
from employee
EMPNO SALARY JOININGDATE WORK
ENAME
a amt 25000 IS UANEIB HR
a aan 20000 21-00-19 sales
“ ‘ota 210002 FEB.AB finance
4s sues 25000 OS-JAN20 (i 5 RS et eas ee a
6 ashish 30000 30ULA6 reception
a wham 20000 1S:DEC-1S sales
a chi
een, sala mime) teDate:
™
2
S
£om_
a e salary
ae paige
ENAME
nighi
di ee.
Joined in january -
__ >| Selects eneame
From __emPloyee.\ join = -
Format.
Select: +o0—chay
(eae t
iA a)
i f= nae
ee EE Coco a0 OC con ee
‘TO_CHAR(JOININGDATE, DDTH-MON-YYYY")
— r2tug-2009
13m jan2018
2Astoct.2019
1 230002016
stnjan-2020
300.2016
|__rstnsec-2015
s2mnjan-2008
aun-2028,Date :
O¥ 2e ¥O
>| Declare
dum number += Baget —num 2
Beain
If numi< 0 Then
PRE ODS Se ao cs ce ne
: ai WV fo anegatv De
E\sete num = 0 Then
Dinms output. Pub. line
: : LN \_ to zeyo');
Else
Dh out put. Pr eens
(Twe_wuam leer ‘11 aan 2 ig a Positive
Num ler‘) *
End Te;
End 4Page No. i
Date J
ea
| Dut put for question 3 sul question |even oy odd
=>! Declare
NX Number t= 44
Beain
86 mod n,2)=0 AL
then
doms output - Put —line
‘Number is even’)Page No.
(Date
\ /
| Output for question Wp B sub qurection 2
Output if tre umber 1S tenDate
ZB) writ [Le
Number and Pwink a cum of dig cece
=> | Declave
NAM V m bey = ie
i Yum bey §
1 Aumbey =O 5
YX nun ber ae
Begin a
dum 2= & num 5
> 00:
Y= Mon (num, 1093
SH sOniaee
Num = flooy Cnum/10)5
end 100° 5
(“the sum of Rigits Reaors
end 5
ZsDate:
and Print _a geese OF that wum be.
>! Neclave
Num Numbey §
Yeve ¥6@_ Yiuam Numloer:= 05
Beain
frum 22 ke YANN Se
WW 20 loo
| reverse — num 2= (yeverse — num % 1D) +
Mod (num 105
End \oops
0» tout - Dut
CReveverd numbey ios”
\ yeverse — Num) §
end §
iEDate :
y JO var thay (255)
\n Sex ‘ing GB ~rows
N insect inte em Dloyce value
i), sae Manager);
2) insert into em Ployee Values _ pone amianc
@ 4 a ‘ ws
2) ise) into QL Val
Se
a) Wse: to ceDeclare
aan
pica So
4 vom __€m Ploye
Me Bs ws 5
sana | Vv E * 5
Begin
dv
SR | SPAT ew 2 Ua
| oP
re) : 5
txt when (C1 /eAotfounds
Venamell® ‘lv job)
tnd\ooe 5
Glo cematas
(crave Re
ae