sql_e(X;Y)
Returns a boolean value indicating if X is equal
to Y. This function has SQL-compatible null handling.
Syntax
sql_e(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_e(X;Y) returns a boolean value of 1 if
X is equal to Y and 0 if
X is not equal to Y.
The data type of the result is integer.
If X or Y is N/A, the result is N/A
Example
In this example, the values in colx are compared to the values in
coly to determine if the colx values are equal to the
coly values.
For null comparison, a column of results using the operator = (equality)
is provided for comparison. For more information, see = (equality).
<table cols="colx,coly"> 899,3; 38,38; 21,770; 95,152; 2700,584; 986,986; ,; ,9; 66,; </table> <willbe name="sqle" label="SQL Null" value="sql_e(colx;coly)"/> <willbe name="equal" label="Null" value="colx = coly"/>
