Conversion Functions
Conversion functions convert a value from one form to another.
| Function | Example | Description | Syntax |
|---|---|---|---|
|
CAST |
|
Changes the data type of an expression or a null literal to another data type. For example, you can cast a customer_name (a data type of Use Don’t use |
|
|
IFNULL |
|
Tests if an expression evaluates to a null value, and if it does, assigns the specified value to the expression. |
|
|
INDEXCOL |
|
Uses external information to return the appropriate column for the signed-in user to see. |
|
|
NULLIF |
|
Compares two expressions. If they’re equal, then the function returns NULL. If they’re not equal, then the function returns the first expression. You can’t specify the literal NULL for the first expression. |
|
|
To_DateTime |
|
Converts string literals of DateTime format to a DateTime data type. |
|
|
VALUEOF |
|
References the value of a semantic model variable in a filter. Use expr variables as arguments of the |
|