I am trying to list last a website\'s statistics. I listed Last 30 days with;
CONVERT(VARCHAR(10), S.DATEENTERED, 101) BETWEEN CONVERT(VARCHAR(10),
Try using the DATEADD function. You can add a -1 with the MONTH (mm) datepart and it should work. Here is a link