I am running a daily job that uses the date for the where clause. I would like the job to increment the dates after it runs. Can this be done? If so, how?
The where statement is similar to this:
(read date-time as mm/dd/yy hh:mm:ss.000)
where eventdate >= '02/04/02 00:00:00.000'
and eventdate < '02/05/02 00:00:00.000'
I do a retrieval of the previous day's information, so today (5 Feb) I would be retrieving information from the 4th. Then I would like the dates to increment so that when the job runs tomorrow it has the correct dates.
Any suggestions?
-Bill
The where statement is similar to this:
(read date-time as mm/dd/yy hh:mm:ss.000)
where eventdate >= '02/04/02 00:00:00.000'
and eventdate < '02/05/02 00:00:00.000'
I do a retrieval of the previous day's information, so today (5 Feb) I would be retrieving information from the 4th. Then I would like the dates to increment so that when the job runs tomorrow it has the correct dates.
Any suggestions?
-Bill