price_api/sql/get.sql

16 lines
282 B
MySQL
Raw Normal View History

2023-10-18 08:37:38 -04:00
SELECT
gset
,agglevel
,e.k
,e.v->>'units'
,e.v->>'price_usd'
,e.v->>'target_price'
FROM
rlarp.price_pool_dev
JOIN LATERAL JSONB_EACH(season) e(k,v) ON TRUE
WHERE
gset @> '{"baseitem":"XNS0T1G3"}'::jsonb
ORDER BY
agglevel ASC
;