A Big Data enthusiast, certified implementation specialist in Oracle Business Intelligence OBIEE,OBIA, ODI,BI PUBLISHER, HYPERION ESSBASE, INFORMATICA, EBS R12, SIEBEL. Passionate Oracle Business Intelligence technical blogger, Oracle Technical Network contributor.
SELECT TO_CHAR(ADD_MONTHS(SYSDATE, -level), 'MON-YY') AS Previous_Period
FROM dual
CONNECT BY LEVEL < 5
order by (TO_CHAR(ADD_MONTHS(SYSDATE, -level), 'YYYYMM')) desc
0 comments:
Post a Comment