I have the query below where the date is hard-coded. My objective is to remove the harcoded date; the query should pull the data for the previous month when it runs.
<
It is working with me in Oracle sql developer
SELECT add_months(trunc(sysdate,'mm'), -1), last_day(add_months(trunc(sysdate,'mm'), -1)) FROM dual