I want to select the first and last values from an array. The array is the results of a “rollup” of certain values in another table. Depending on the value of the last element, I might need to select the second last element.
How can I conveniently select values from an array?
In Python and other languages I would be something like x[0], x[-1] (or x[-2])…
Do I need to do “the painful job of FIND LEFT” etc. Or can it be done in a nicer way?
Thanks!
