Videos

Single Row Functions in Oracle


Number Functions:
These functions take Numeric values as input and returns numeric values. All the Number functions in oracle are listed in the given table.
S.no
Function
Description
Example
1
ABS(n)
Returns the Positive value of a given number
Abs(-4)= 4
Abs(4)=4
Abs(-3.865)= 3.865
2
  CEIL(n)
Returns the smallest integer greater than equal to the given number
Ceil(3.56)= 4
Ceil(3.12)= 4
Ceil(-2.34)= -2
3


Floor(2.34)= 2
Floor(-2.34)= -3
4
MOD(m, n)
Mod(3,2)= 1
5
POWER(m, n)
Returns m raised to the nth power
Power(9,2)= 81
6
Round(3.86737, 4)= 3.8674

Round(3.86737, 2)= 3.87
7
SIGN(n)
Sign(-5346)= -1
8
SQRT(n)
Returns the square root of n
Sqrt(9)= 3
9
Trunc(3.5642,2)= 3.56
10
Exp(n)
E raised to the nth power
Exp(2)= 7.3890561
Share on Google Plus

About siddu

0 comments:

Post a Comment