Professional Documents
Culture Documents
:Checkwhet
hert
heUser
namebegi
nswi
thaVowel
ornot
.
decl
are
unamev
archar
2(20)
;
begi
n
uname:
='
&uname'
;
uname:
=upper
(uname)
;
i
f(unamel
i
ke'
A%'
orunamel
i
ke'
E%'
orunamel
i
ke'
I
%'orunamel
i
ke'
O%'
orunamel
i
ke'
U%'
)
t
hen
dbms_
out
put
.put
_li
ne(
'User
name'
|
|uname|
|'i
sSt
artwi
thVowel
'
);
el
se
dbms_
out
put
.put
_li
ne(
'User
name'
|
|uname|
|'i
snotSt
artwi
thVowel
'
);
endi
f;
end;
Compi
l
edby
:Mi
teshPat
el
Pr
esent
edby
:Dhr
uvPat
el
Def
:Checkwhet
hert
heUser
’sbi
rt
hdayappear
sonaSundayornot
decl
are
bi
rt
hdat
edat
e;
begi
n
bi
rt
hdat
e:='
&bi
rt
hdat
e';
i
f(t
ri
m(t
o_char
(bi
rt
hdat
e,'
day
')
)='
sunday
')t
hen
dbms_
out
put
.put
_li
ne(
'Bi
rt
hdayi
sonSunday
')
;
el
se
dbms_
out
put
.put
_li
ne(
'Bi
rt
hdayi
sNotonSunday
')
;
endi
f;
end;
Compi
l
edby
:Mi
teshPat
el
Pr
esent
edby
:Dhr
uvPat
el