SPLIT_PART
Splits a string on the specified delimiter and returns the given part.
SPLIT_PART(string, delimiter, part_number)
delimiter
The delimiter to split by.
part_number
The part number to return (1-based).
Examples
SELECT SPLIT_PART('a|b|c', '|', 2)