how to get the one month ago in oracle sql code example Example: oracle sql day of month from date select extract(day from systimestamp) from dual;