|
Hi all, I am looking at running a report which will look at records added over the last 6 months. The date field is named [DateCreated] and I will be running the report on the first day of every month. Does anyone know of any SQL that will automatically calculate the last 6 months? Thanks
(comments are locked)
|
|
for a report parameter for the end of the report you could use this as the parameter default value to get the last day of prev month
To get the start date, 6 months prior to today, use the function supplied by Kev +1 for referencing Kev and providing a good solution.
Mar 22 '10 at 03:15 PM
CirqueDeSQLeil
+1: I hadn't even twigged it was for SSRS!
Mar 22 '10 at 03:24 PM
Kev Riley ♦♦
(comments are locked)
|
or do you need a better definition of 'month'?
(comments are locked)
|

