Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: Converting Report to automate for previous month

$
0
0

From the look of this, I assume that you're using a command.  I don't know what database you're connecting to, but in MS SQL, you would make changes like this to run for the previous month only:

 

and a.event_month = Left(Convert(DateAdd(mm, -1, SysDate), 120), 7)

 

-Dell



Viewing all articles
Browse latest Browse all 8372

Trending Articles