2023-10-18 08:37:38 -04:00
|
|
|
SELECT
|
|
|
|
gset
|
|
|
|
,agglevel
|
|
|
|
,e.k
|
2023-11-01 15:12:18 -04:00
|
|
|
,e.v->>'units' units
|
|
|
|
,e.v->>'price_usd' price_usd
|
|
|
|
,e.v->>'target_price' target_price
|
2023-10-18 08:37:38 -04:00
|
|
|
FROM
|
|
|
|
rlarp.price_pool_dev
|
2023-11-01 15:12:18 -04:00
|
|
|
LEFT JOIN LATERAL JSONB_EACH(season) e(k,v) ON TRUE
|
2023-10-18 08:37:38 -04:00
|
|
|
WHERE
|
2023-11-01 15:12:18 -04:00
|
|
|
--gset @> '{"mold":"XNS0T1G3"}'::jsonb
|
|
|
|
gset @> jsonb_build_object(
|
|
|
|
'mold','TUH10000',
|
|
|
|
'vers','A'
|
|
|
|
)
|
2023-10-18 08:37:38 -04:00
|
|
|
ORDER BY
|
2023-11-01 15:12:18 -04:00
|
|
|
agglevel ASC;
|