1. Give Syntax and Queries to demonstrate the use of following Numeric functions in
System Defined Table
a. Absolute
f. Power
k. Trunc
b. Ceil
g. Tan
l. Greatest
c. Floor
h. Cos
m. Least
d. Round
i. Sin
n. sqrt
e. Mod
j. Log
o.
2. Create the following table and perform the below mentioned Queries
p.
s.
v.
y.
ab.
ae.
A
-12.5
-13.5
0.5
1.0
2.0
q.
t.
w.
z.
ac.
af.
B
2
4
6
8
10
r.
u.
x.
aa.
ad.
ag.
C
3
5
7
9
11
ah.
a. Find the absolute value of Column A and name it as Absolute A
b. Find the upper and lower values of Column A and column B respectively.
c. Find the Power value using Absolute A as base and column C as its power.
d. Find the square root of Column A
e. Find the value of A mod B
f. Find the sum of column A and Column B
ai.
3. Give Syntax and Queries to demonstrate the use of following Character functions in
System Defined Table
a. Initcap
e. Trim
i. Rpad
b. Length
f. Ltrim
j. Upper
c. Substr
g. Rtrim
k. Lower
d. Instr
h. Lpad
l. Replace
m.
[1]
4. Create the following table and perform the below mentioned Queries
n. Eid
o. Ename
p. Designa
q. Salary
r. City
s. 101
t. Rajiv
tion
u. Manage
v. 10000
w. Delhi
x. 102
ac. 103
y. Sita
ad. Ram
r
z. Clerk
ae. Manage
aa. 5000
af. 10000
ab. Mumbai
ag. Chennai
ah. 104
ai. Ramesh
r
aj. Assistan
ak. 8000
al. Hyderab
am.105
an. Shyam
t
ao. Clerk
ap. 5000
ad
aq. Delhi
ar.
a. Convert the name of employees into uppercase
b. Capitalize the first letter of the designation of Employees
c. Convert the city column into lowercase letters
d. Trim zeroes from salary column
e. Pad the salary to 10 digits using Zeroes on right side
f. Remove 1 from eid column.
g. Prefix 2 to eid column
h. Find the location of word ei in city column
i. Find the first two digits of city column
j. Find the length of designation column
as.
at.