how to get the first date and last date of the previous month using the ssrs subscription
Hmm, so the requirement isnt exactly to get the first and last days of prev month. For the above requirement, you have to use the code below. SELECT MyCols. FROM MyTable. WHERE MyDateCol >= ( -- if day is 1st of the month, use 15th of prev month else use 1st of prev month.