Is it possible to make one big array from a query like:
select
array_append(ARRAY[0], console_id)
from archive_sessions
where tournament_id = 14817
I tried with group by
but I have to use console_id in it and it still is more than 1 row.
And how in this query initializing an empty ARRAY[]
?