Returns the item at the specified index from a list of values. If index
exceeds the bounds of values
then NULL
is returned.
Parameters:
index
: integer, index to item in values
. 1-based.values
: any type, comma separated listSELECT CHOOSE (1, 'apples', 'pears', 'oranges', 'bananas') AS chosen_result
chosen_result
-------------
apples