I am stuck and I have not done anything like this before. By providing todays date e.g 2010-12-04, I should get the following:
startdate = 2010-11-29
enddate = 2010-12-05
Basically I need to filter my query so it gives me data for this ‘week’
any idea on how to start this will be great!
Thanks,
Tarun
Updated: This function is due to Graham at SqlTeam. It returns Monday’s date for any given date; it should cope with any
DATEFIRSTsetting:For a variety of date functions see here.