putting wrong sort number on month
This commit is contained in:
parent
e7ce48405b
commit
53ac7f90e2
@ -90,13 +90,13 @@ SELECT
|
|||||||
,calc_status
|
,calc_status
|
||||||
,flag
|
,flag
|
||||||
,o.odate order_date
|
,o.odate order_date
|
||||||
,to_char(CASE WHEN extract(month FROM o.odate) > 6 THEN -5 ELSE 7 END + extract(month FROM o.odate),'FM00')||' - '||to_char(o.odate,'TMMon') order_month
|
,to_char(CASE WHEN extract(month FROM o.odate) >= 6 THEN -5 ELSE 7 END + extract(month FROM o.odate),'FM00')||' - '||to_char(o.odate,'TMMon') order_month
|
||||||
,oseas order_season
|
,oseas order_season
|
||||||
,rdate request_date
|
,rdate request_date
|
||||||
,to_char(CASE WHEN extract(month FROM o.rdate) > 6 THEN -5 ELSE 7 END + extract(month FROM o.rdate),'FM00')||' - '||to_char(o.rdate,'TMMon') request_month
|
,to_char(CASE WHEN extract(month FROM o.rdate) >= 6 THEN -5 ELSE 7 END + extract(month FROM o.rdate),'FM00')||' - '||to_char(o.rdate,'TMMon') request_month
|
||||||
,rseas request_season
|
,rseas request_season
|
||||||
,sdate ship_date
|
,sdate ship_date
|
||||||
,to_char(CASE WHEN extract(month FROM o.sdate) > 6 THEN -5 ELSE 7 END + extract(month FROM o.sdate),'FM00')||' - '||to_char(o.sdate,'TMMon') ship_month
|
,to_char(CASE WHEN extract(month FROM o.sdate) >= 6 THEN -5 ELSE 7 END + extract(month FROM o.sdate),'FM00')||' - '||to_char(o.sdate,'TMMon') ship_month
|
||||||
,sseas ship_season
|
,sseas ship_season
|
||||||
,version
|
,version
|
||||||
,iter
|
,iter
|
||||||
|
Loading…
Reference in New Issue
Block a user