Small working example
SELECT SPLIT("hello::hej::hallo::hoi", "::")
returns an array [hello, hej, hallo, hoi]
where I want to select the first element i.e. hello
. BG Standard provides no FIRST
, instead FIRST_VALUE(..) OVER()
which I cannot get working for this example above, so
How can I select the first value of array with BigQuery Standard SQL?