Compare commits

...

2 Commits

Author SHA1 Message Date
Paul Trowbridge
f5d464677e add tie-out check for post-conversion 2020-05-11 20:54:35 -04:00
Paul Trowbridge
f57cb5f26a update fx rate, probably should not override anyways 2020-05-11 20:05:46 -04:00
3 changed files with 29 additions and 4 deletions

View File

@ -0,0 +1,22 @@
SELECT
order_season
,sum(value_usd) value_usd
FROM
rlarp.osm_pool
WHERE
order_season = 2021
--AND version = 'b21'
GROUP BY
order_season
UNION ALL
SELECT
oseas
,sum(fb_val_loc * r_rate) value_usd
FROM
rlarp.osmf_dev
WHERE
oseas = 2021
AND version = 'b21'
GROUP BY
oseas

View File

@ -141,7 +141,7 @@ plist AS (
UPDATE
rlarp.osmfS_dev o
rlarp.osmfs_dev o
SET
fb_cst_loc_cur = c.stdcost * o.fb_qty
FROM
@ -364,7 +364,7 @@ WHERE
UPDATE
rlarp.osmfS_dev
SET
r_rate = .7597
r_rate = .7518
WHERE
r_currency = 'CA';
@ -378,7 +378,7 @@ WHERE
UPDATE
rlarp.osmfS_dev
SET
c_rate = .7597
c_rate = .7518
WHERE
c_currency = 'CA';

View File

@ -15,12 +15,15 @@ fp as (
)
SELECT
fp.part,
fp.sales,
min(item) item
FROM
fp
LEFT OUTER JOIN rlarp.itemmv m ON
substring(m.item,1,11) = fp.part
GROUP BY
fp.part
fp.part,
fp.sales
ORDER BY
fp.sales desc,`
fp.part