Last updated
Last updated
You can access the first entry of an array with this function. This function comes in handy if you try to access a record in an array of records.
The record IDs of the tables are arranged differently in the multiple platforms. Therefore, different results are displayed according to each platform. This applies if the array consists of records.
If you combine the function with select
and the respective array has more than 1 element, we recommend sorting the array first with order by
.
first([any])
any
Result: B
Result: Returns the first record of the Customer table.
Result: Returns the first record of the table Customer where the last name starts with an A.
, which returns the last item of an array.
, which extracts a value of an array or an object.
Do you want to dive deeper into the topic? Take a look at the corresponding part of our .
To return the first item of an array