Returns the last character(s) of a string, based on the number of characters you specify.
Syntax
LAST integer CHARACTERS OF string
LAST CHARACTER OF string
Inputs
integer - A positive integer value. This can be either an attribute of base type integer, an expression that results in an integer or a constant integer value. LAST CHARACTER OF can be used to retrieve only the last character of the string.
string - An attribute of base type string, an expression that results in a string or a constant string value.
Return type
string
If you prefer a functional syntax, you can use the STR_BACK ( string, integer ) function. Example: STR_BACK("Blueriq", 3) = "riq"