Compare commits
No commits in common. "f5d464677e057b8c07f719513fa79070277bbb1c" and "a2a7bee6e04ec485f82c400ec69d64e8e0c755a8" have entirely different histories.
f5d464677e
...
a2a7bee6e0
@ -1,22 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
@ -141,7 +141,7 @@ plist AS (
|
|||||||
|
|
||||||
|
|
||||||
UPDATE
|
UPDATE
|
||||||
rlarp.osmfs_dev o
|
rlarp.osmfS_dev o
|
||||||
SET
|
SET
|
||||||
fb_cst_loc_cur = c.stdcost * o.fb_qty
|
fb_cst_loc_cur = c.stdcost * o.fb_qty
|
||||||
FROM
|
FROM
|
||||||
@ -364,7 +364,7 @@ WHERE
|
|||||||
UPDATE
|
UPDATE
|
||||||
rlarp.osmfS_dev
|
rlarp.osmfS_dev
|
||||||
SET
|
SET
|
||||||
r_rate = .7518
|
r_rate = .7597
|
||||||
WHERE
|
WHERE
|
||||||
r_currency = 'CA';
|
r_currency = 'CA';
|
||||||
|
|
||||||
@ -378,7 +378,7 @@ WHERE
|
|||||||
UPDATE
|
UPDATE
|
||||||
rlarp.osmfS_dev
|
rlarp.osmfS_dev
|
||||||
SET
|
SET
|
||||||
c_rate = .7518
|
c_rate = .7597
|
||||||
WHERE
|
WHERE
|
||||||
c_currency = 'CA';
|
c_currency = 'CA';
|
||||||
|
|
||||||
|
@ -15,15 +15,12 @@ fp as (
|
|||||||
)
|
)
|
||||||
SELECT
|
SELECT
|
||||||
fp.part,
|
fp.part,
|
||||||
fp.sales,
|
|
||||||
min(item) item
|
min(item) item
|
||||||
FROM
|
FROM
|
||||||
fp
|
fp
|
||||||
LEFT OUTER JOIN rlarp.itemmv m ON
|
LEFT OUTER JOIN rlarp.itemmv m ON
|
||||||
substring(m.item,1,11) = fp.part
|
substring(m.item,1,11) = fp.part
|
||||||
GROUP BY
|
GROUP BY
|
||||||
fp.part,
|
fp.part
|
||||||
fp.sales
|
ORDER BY
|
||||||
ORDER BY
|
|
||||||
fp.sales desc,`
|
|
||||||
fp.part
|
fp.part
|
Loading…
Reference in New Issue
Block a user