Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
This page describes how to use numeric functions in Lenses SQL Processors.
%
The remainder operator (%) computes the remainder after dividing its first operand by its second i.e. numExpr % numExpr
✓
✓
/
Divides one number by another (an arithmetic operator) i.e. numExpr / numExpr
✓
✓
-
Subtracts one number from another (an arithmetic operator) i.e. numExpr - numExpr
✓
✓
*
Multiplies one number with another (an arithmetic operator) i.e. numExpr * numExpr
✓
✓
+
Adds one number to another (an arithmetic operator) i.e. numExpr + numExpr
✓
✓
-
(negative)
Returns the negative of the value of a numeric expression (a unary operator) i.e. -numExpr
✓
✓
This page describes the ATAN function in Lenses SQL.
Returns the trigonometric arc tangent of an expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the ASIN function in Lenses SQL.
Returns the trigonometric arc sine of an expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the ACOS function in Lenses SQL.
Returns the trigonometric arc cosine of an expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the CEIL function in Lenses SQL.
Returns the absolute value of an expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
\
This page describes the COSH function in Lenses SQL.
Returns the hyperbolic cosine of an expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the COS function in Lenses SQL.
Returns the trigonometric cosine of an expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the DEGRESS function in Lenses SQL.
Converts the input expression to degrees.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the FLOOR function in Lenses SQL.
Returns the largest value not greater than the argument.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the MIN function in Lenses SQL.
Returns the minimum element from an arbitrary number of given elements.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the ABS function in Lenses SQL.
Returns the absolute value of an expression
that evaluates to a number type.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the CBRT function in Lenses SQL.
Returns the cube root of numExpr.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the MOD function in Lenses SQL.
Alias for %
.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the POW function in Lenses SQL.
Returns numExp1 raised to the numExp2 power.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the RADIANS function in Lenses SQL.
Converts the input expression to radians.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the ROUND function in Lenses SQL.
Returns the closest integer of an expression
, with ties rounding towards positive infinity.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the RANDINT function in Lenses SQL.
Returns a random integer.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the SINH function in Lenses SQL.
Returns the hyperbolic sine of an expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the SIN function in Lenses SQL.
Returns the hyperbolic sine of an expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the SQRT function in Lenses SQL.
Returns the square root of numExpr.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the NEG function in Lenses SQL.
Returns the negative value of an expression
it has to evaluate to a number type.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the SIGN function in Lenses SQL.
Returns +1 if a value is positive or -1 if a value is negative.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
We use the NEG function to emulate a negative value in this function.
This page describes the TAN function in Lenses SQL.
Returns the trigonometric tangent of an expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the TANH function in Lenses SQL.
Returns the hyperbolic tangent of an expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the MAX function in Lenses SQL.
Returns the maximum element from an arbitrary number of given elements.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the DISTANCE function in Lenses SQL.
Calculates the distance between two points using the haversine method.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓