dbt - Advanced Patterns
You have a JSON column
data with nested arrays of orders. How would you write a dbt SQL query to flatten the array data:orders and select each order's id and amount?