Description
Returns a specific part of a string split by a delimiter
Syntax
SPLIT_PART(string, delimiter, part_number)
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| string | String value | String | Yes |
| delimiter | Separator string placed between elements | String | Yes |
| part_index | 1-based index of the substring to return | Integer | Yes |
Example
SELECT
SPLIT_PART(full_name, ' ', 1)
FROM
rippling.employee.Employee
LIMIT
5;