exclude retail from pricing upload

This commit is contained in:
Paul Trowbridge 2021-05-10 16:53:36 -04:00
parent e0d32cf4cf
commit b4e592bbf1

View File

@ -572,6 +572,7 @@ WHERE
AND a.account = o.billto_group AND a.account = o.billto_group
AND a.shipgrp = o.shipto_group AND a.shipgrp = o.shipto_group
AND o.order_date >= '2021-06-01' AND o.order_date >= '2021-06-01'
AND o.segm <> 'Retail'
) )
--SELECT order_season, order_month, sum(value_usd) from ins group by order_season, order_month; --SELECT order_season, order_month, sum(value_usd) from ins group by order_season, order_month;
INSERT INTO rlarp.osm_pool SELECT * FROM ins; INSERT INTO rlarp.osm_pool SELECT * FROM ins;