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.
<
Getting last nth months data retrieve
SELECT * FROM TABLE_NAME WHERE DATE_COLUMN BETWEEN '&STARTDATE' AND '&ENDDATE';