LEFT and RIGHT
Description
These functions return the specified number of leftmost or rightmost characters from a character string. (SQL Language References LEFT and RIGHT function).
Grammar Syntax
This function is fully supported by Snowflake.
Sample Source Patterns
Input Code:
IN -> Redshift_01.sql
Output Code:
OUT -> Redshift_01.sql
Know Issues
In Snowflake and Redshift, the LEFT
and RIGHT
functions handle negative values differently:
Snowflake: Returns an empty string when the second argument is negative.
Redshift: Raises a runtime error with negative values.
Related EWIs
There are no known issues.
Last updated