![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have need to produce a report (excel sheet actually) from SQL that would run each Tuesday and each Friday of every week. What needs to be on the Tuesday report is everything that came in from the Friday midnight time, until the Monday midnight time. The friday report(sheet) would have everything that came in from Midnight Monday evening, thru midnight Thursday. The next Tuesday report would have everything from Midnight Thursday thru midnight Monday, and so on. I know I can schedule the jobs to run on that interval, but how do I selectively pick the records I want? There is a datetime field on the table, "submit date" and what I am basically doing is a select * from tbl_literature_orders where date > x. Any ideas? Thanks, BC |
#3
| |||
| |||
|
|
I have need to produce a report (excel sheet actually) from SQL that would run each Tuesday and each Friday of every week. What needs to be on the Tuesday report is everything that came in from the Friday midnight time, until the Monday midnight time. The friday report(sheet) would have everything that came in from Midnight Monday evening, thru midnight Thursday. The next Tuesday report would have everything from Midnight Thursday thru midnight Monday, and so on. I know I can schedule the jobs to run on that interval, but how do I selectively pick the records I want? There is a datetime field on the table, "submit date" and what I am basically doing is a select * from tbl_literature_orders where date > x. Any ideas? Thanks, BC |
![]() |
| Thread Tools | |
| Display Modes | |
| |