From e030cce8b3a1e98173ffadf0472dcff255629d24 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 21 Feb 2020 11:30:03 -0500 Subject: [PATCH] coalesce promo for use in uniqueness test --- build/build_forecast.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build/build_forecast.sql b/build/build_forecast.sql index 688e573..dacdb51 100644 --- a/build/build_forecast.sql +++ b/build/build_forecast.sql @@ -55,7 +55,7 @@ gld AS ( ,null::jsonb discj ,null::text dhincr ,plnt - ,o.promo + ,COALESCE(o.promo,'') promo ,null::text return_reas ,o.terms ,null::text custpo @@ -156,7 +156,7 @@ gld AS ( GROUP BY o.fspr ,plnt - ,o.promo + ,COALESCE(o.promo,'') ,o.terms ,o.bill_cust ,ship_cust @@ -202,7 +202,7 @@ gld AS ( ,null::jsonb discj ,null::text dhincr ,plnt - ,o.promo + ,COALESCE(o.promo,'') promo ,null::text return_reas ,o.terms ,null::text custpo @@ -296,7 +296,7 @@ gld AS ( GROUP BY o.fspr ,plnt - ,o.promo + ,COALESCE(o.promo,'') ,o.terms ,o.bill_cust ,ship_cust @@ -342,7 +342,7 @@ gld AS ( ,null::jsonb discj ,null::text dhincr ,plnt - ,o.promo + ,COALESCE(o.promo,'') promo ,null::text return_reas ,o.terms ,null::text custpo @@ -434,7 +434,7 @@ gld AS ( GROUP BY o.fspr ,plnt - ,o.promo + ,COALESCE(o.promo,'') ,o.terms ,o.bill_cust ,ship_cust