Merge branch 'dev' of github.com:fleetside72/forecast_api into dev

This commit is contained in:
Paul Trowbridge 2019-03-18 23:22:38 -05:00
commit 5f72da665e

View File

@ -45,20 +45,27 @@ GROUP BY
,bill_cust_descr
,ship_cust_descr
)
, basket AS (
, basket1 AS (
SELECT
part_descr
,bill_cust_descr
,ship_cust_descr
,SUM(value_usd)/(SELECT SUM(value_usd) FROM baseline) mix
,SUM(value_usd) value_usd
FROM
base
GROUP BY
part_descr
,bill_cust_descr
,ship_cust_descr
ORDER BY
mix desc
)
,basket AS (
SELECT
part_descr
,bill_cust_descr
,ship_cust_descr
,value_usd/sum(value_usd) over () mix
FROM
basket1
)
,months AS (
SELECT