sql_g(X;Y)
Returns a boolean value indicating if X
is greater
than Y
. This function has SQL-compatible null handling.
Syntax
sql_g(X;Y)
Input
Argument | Type | Description |
---|---|---|
X |
any numeric type | The name of a column of values to compare to Y . |
Y |
any numeric type | The name of a column of values to compare to X . |
Return Value
sql_ge(X;Y)
returns a boolean value of 1
if
X
is greater than Y
and 0
if
X
is less than or equal to Y
.
The data type of the result is integer.
If X or Y is N/A (null), the result is also N/A.
Example
In this example, the values in colx
are compared to the values in
coly
to determine if the colx
values are greater than
the coly
values.
For null comparison, a column of results using the operator >
(greater
than) is provided for comparison. For more information, see > (greater than).
<table cols="colx,coly"> 899,3; 38,38; 21,770; 95,152; 2700,584; 986,986; ,; ,9; 66,; </table> <willbe name="sqlg" label="SQL Null" value="sql_g(colx;coly)"/> <willbe name="greater" label="Null" value="colx > coly"/>