redietlove wrote:
I want to select and display all the customers that purchased item last month
You need to write a SQL query on that table that will always return the records of 'last month'. Thus, whenever report is run, you get today-30 days data.
Set this (last month) parameter in your query the way you want.
1. You want last 30 days or so (has to be a fixed number).
2. Last month only. If today is 13th March, yet result set needs to be of just 1-28 Feb.
Accordingly, fetch the result with your appropriate WHERE clause.
Example:
Select
Id, Item, PurDate, Price
From
PurTable
Where
PurDate Between GetDate() AND (GetDate()-30)
redietlove wrote:
remember the report is going to be generated every month.
This part can be handled by your report server. Schedule it to generate and send it to users.