Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

    • First, create a query that has a nested jsonb extract statement (in the Select clause) for EACH of the arrays you're trying to extract (example below) – do not use cross joins
      • if you want to use cross joins, create one cross join query for each array field that you want to extract; don't combine all the extracts in one cross-join query
      • You will have to left-join each of the query results to the all-records query (created in the second step)
    • Next, create a query that finds all records from the source table (for example, get all instance ids from the folio_inventory.instance table), and left-join the results of the first query to it

...