parameterize where clause

This commit is contained in:
Paul Trowbridge 2019-03-22 04:51:44 -04:00
parent c85994b606
commit 0a9a56c6c2

View File

@ -179,12 +179,7 @@ target AS (select $$replace_request$$::json def)
mseq.m = order_month
WHERE
-----------------scenario----------------------------
--where_clause
quota_rep_descr = '30033 - ROBERT NELSON'
AND mod_chan = 'DISTRIBUTOR'
AND shipto_group = 'KINNEY BONDED'
AND "version" = 'b20'
AND iter = 'copy'
where_clause
--probably dont want to include adjustments that have blown away volume and good sources of dating info
-----------------additional params-------------------
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
@ -693,12 +688,7 @@ FROM
rlarp.osm_fcpool b
WHERE
-----------------scenario----------------------------
--where_clause
quota_rep_descr = '30033 - ROBERT NELSON'
AND mod_chan = 'DISTRIBUTOR'
AND shipto_group = 'KINNEY BONDED'
AND "version" = 'b20'
AND iter = 'copy'
where_clause
--probably dont want to include adjustments that have blown away volume and good sources of dating info
-----------------additional params-------------------
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments