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