Compare commits

..

No commits in common. "37fead59ffa9818f9c41cc179d2036ec6aa559a5" and "42c5900efec60ae280240ca0560a6b4cc7da208a" have entirely different histories.

2 changed files with 3 additions and 8 deletions

View File

@ -195,7 +195,7 @@ BEGIN
tprice = tp.price,
tmath = to_json(tp.math),
volume_range = tp.vol::TEXT
FROM pricequote.target_prices_base tp
FROM pricequote.target_prices tp
WHERE
tp.stlc = q.stlc
AND tp.ds = q.v1ds
@ -210,7 +210,7 @@ BEGIN
UPDATE pricequote.queue q
SET
tprice_last = tp2.price
FROM pricequote.target_prices_base tp2
FROM pricequote.target_prices tp2
WHERE
q.last_dataseg IS NOT NULL
AND tp2.stlc = q.stlc

View File

@ -383,12 +383,7 @@ BEGIN
TRY_CAST(q.last_price_norm AS NUMERIC(20,5)),
TRY_CAST(q.listprice_eff AS NUMERIC(20,5)),
TRY_CAST(q.last_date AS DATE),
--allowable price drop percent
.05,
--cap on last price
1.0,
--cap on list percent
1.0
.15, 1.0, 1.0
) g;
--------------------------------------------------------------------------------