I need help with sql statement to retrieve prior month data while using the computer date as reference.
select * from table where date BETWEEN #05/01/2014# AND#05/31/2014#);
Instead of putting the prior month date myself in query or using parameter, I need the query to use the computer day to retrieve prior month. So if we are in any day of the month of May, the query should see May and retrieve April 01 to April 30 data and so on for other month. Any help will be appreciated. Thanks