Hello world... I have a .net web app that pulls from sql views and one of my forms is pulling data from the sql tables using the dates in the table.. the issue is i need to pull 2 wks of infomation from table... Here is my code.
WHERE COMPLETED >dateadd(week,datediff(week,
0,(getdate())),
7)
-- as beginning_of_previous_week
As you can guess i am getting a dounut hole! Can anyone help me with this?
TheEisdame
Member
9 Points
119 Posts
Creating Date Range
Mar 16, 2013 01:31 AM|LINK
Hello world... I have a .net web app that pulls from sql views and one of my forms is pulling data from the sql tables using the dates in the table.. the issue is i need to pull 2 wks of infomation from table... Here is my code.
WHERE COMPLETED > dateadd(week, datediff(week, 0, (getdate())), 7) -- as beginning_of_previous_week
As you can guess i am getting a dounut hole! Can anyone help me with this?
Thanks in advance
oned_gk
All-Star
31511 Points
6431 Posts
Re: Creating Date Range
Mar 16, 2013 02:31 AM|LINK