Expected POSITION Values - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

POSITION returns a value according to the following rules.

Situation Result
Either argument is NULL. NULL.
string_expression_1 has length zero, One.
string_expression_1 is a substring within string_expression_2. Position in string_expression_2 where string_expression_1 starts.
None of the preceding is true. Zero.

If the arguments are character types, then regardless of the server character set, the value for POSITION represents the position of a logical character, not a byte position.