Lafor
February 25th, 2003, 05:25 PM
Hello Guys...
Have to write a query or stored proc that would (given the day of the week) grab last 5 weeks data.. A week defined as Sun - Sat
So, for example if today is Thursday, the stored proc would
get last saturday's date and do a query to get the data for the
last 5 weeks (i.e up to last saturday's date)
Hope I am clear...
Let me know if I need to clarify...
Any ideas?
Thanks to all in advance...
Have to write a query or stored proc that would (given the day of the week) grab last 5 weeks data.. A week defined as Sun - Sat
So, for example if today is Thursday, the stored proc would
get last saturday's date and do a query to get the data for the
last 5 weeks (i.e up to last saturday's date)
Hope I am clear...
Let me know if I need to clarify...
Any ideas?
Thanks to all in advance...