Arrays and seriesSQL standard
UNNEST
Expands an array into rows — one row per element.
Syntax
UNNEST(<array>)
UNNEST(<array>) WITH ORDINALITY
The opposite of ARRAY_AGG: from a single array value it makes as many rows as the array has elements. Handy when a list is stored in one field, such as tags, but you need to work with it like a table: filter, group, join.