From 787cc9452ff7a92f20da583b4b12aaa9c302c000 Mon Sep 17 00:00:00 2001 From: Trowbridge Date: Tue, 25 Feb 2020 10:11:40 -0500 Subject: [PATCH] remove white space in month formatting --- route_sql/new_basket.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/route_sql/new_basket.sql b/route_sql/new_basket.sql index 3fa47ff..32abe7e 100644 --- a/route_sql/new_basket.sql +++ b/route_sql/new_basket.sql @@ -17,8 +17,8 @@ target AS (select $$replace_request$$::json def) ,to_char(N1ED01,'yymm') CAPR ,N1ED01 - N1SD01 +1 NDAYS ,CASE WHEN EXTRACT(MONTH FROM N1ED01) >= 6 THEN EXTRACT(YEAR FROM N1ED01) + 1 ELSE EXTRACT(YEAR FROM N1ED01) END SSYR - ,to_char(CASE WHEN EXTRACT(MONTH FROM N1ED01) >= 6 THEN EXTRACT(MONTH FROM N1ED01) -5 ELSE EXTRACT(MONTH FROM N1ED01) +7 END,'00') SSPR - ,to_char(CASE WHEN EXTRACT(MONTH FROM N1ED01) >= 6 THEN EXTRACT(MONTH FROM N1ED01) -5 ELSE EXTRACT(MONTH FROM N1ED01) +7 END,'00') || ' - '|| TO_CHAR(n1ed01,'Mon') SORTMO + ,to_char(CASE WHEN EXTRACT(MONTH FROM N1ED01) >= 6 THEN EXTRACT(MONTH FROM N1ED01) -5 ELSE EXTRACT(MONTH FROM N1ED01) +7 END,'FM00') SSPR + ,to_char(CASE WHEN EXTRACT(MONTH FROM N1ED01) >= 6 THEN EXTRACT(MONTH FROM N1ED01) -5 ELSE EXTRACT(MONTH FROM N1ED01) +7 END,'FM00') || ' - '|| TO_CHAR(n1ed01,'FMMon') SORTMO FROM LGDAT.GLDATREF INNER JOIN LGDAT.GLDATE ON