I am trying to select records where the date is older than the current month. I am using this:
and MY_DATE <= ADD_MONTHS(TRUNC(SYSDATE), -1)
but it is not working good. Seems to select records based on 30 days, and not the month.
For example on March 19, any record Feburary or older needs to be selected. The above is eliminating records in late Feb.
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.