Returns the position of the first occurrence of a substring within another string
select position('an' in 'banana') -- 2
select position('no' in 'banana') -- 0
Searches for the first occurrence of the first argument in the second argument and if found, returns the position the of the first argument in the second argument. The first character in a string is position 1. Returns 0 if the substring is not found in the expression.