79227991

Date: 2024-11-26 19:23:29
Score: 1.5
Natty:
Report link

One approach is to reverse the array and then take the first element of reversed array.

select(array_reverse(array_construct(0,1,2,3,4,5,6))[0]);  --returns 6
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kevin Ray