Postgresql – Extract values from jsonb column with dynamic keys
I have a column of a table with this kind of structure { "Warehouse1": { "stock": 100, "batches":{...} }, "Warehouse32": { "stock": 90, "batches":{...} }, "Warehouse58": { "stock": 43, "batches":{...} }, "Warehouse99": { "stock": 55, "batches":{...} }, "Warehouse101": { "stock":…