Dearest genius StackOverflow friends,
I\'m in the need of creating a view that will always give me data in the WHERE clause for \"Period\" looking for the previous M
you can get what you want using
TO_CHAR(add_months(sysdate,-1), 'MMYY')
of course you can replace sysdate with timestamp, if necessary.