Hi
I have a select list
It populates all the months based on the following query:
SELECT TO_CHAR(ADD_MONTHS(SYSDATE,(level-1)*-1),'Mon') d
,TO_CHAR(ADD_MONTHS(SYSDATE,(level-1)*-1),'Mon') r
FROM DUAL
CONNECT BY level < 13
ORDER BY level
I want to just display current months and previous months, not the future months based on sysdate.
Any help would be greatly appreciated.