vault backup: 2023-11-07 01:18:42

This commit is contained in:
Paul Trowbridge 2023-11-07 01:18:42 -05:00
parent 64bd728b4c
commit 8119255e46

View File

@ -11,6 +11,7 @@ DECLARE
--_qty numeric;
--_seas int;
_mold text;
_stlc text;
_cust text;
_v1ds text;
_v0ds text;
@ -32,9 +33,9 @@ BEGIN
----------------base product--------------------------------
SELECT
m.part_group, i.v1ds,i.v0ds,jsonb_build_object('assc',i.assc,'majg',i.majg::int,'coltier',i.coltier) idxk
m.part_group, i.stlc, i.v1ds,i.v0ds,jsonb_build_object('assc',i.assc,'majg',i.majg::int,'coltier',i.coltier) idxk
INTO
_mold,_v1ds ,_v0ds, _iidx
_mold,_stlc,_v1ds , _v0ds, _iidx
FROM
"CMS.CUSLG".itemmv i
INNER JOIN rlarp.molds m ON
@ -74,7 +75,7 @@ BEGIN
FROM
pricequote.market_setavgprice
WHERE
mold = _mold
mold = _stlc
AND season = _seas
AND data_segment = _v1ds
AND region = 'ALL';