Viewing 2 posts - 1 through 2 (of 2 total)
Yup!!
Missed the time issue.
Thanks
Daizy
June 14, 2006 at 6:23 am
#643610
little simplified...
select * from tblname WHERE datecol>= DATEADD(DAY,-7,GETDATE())
Or
SELECT * FROM tblnameWHERE datecol BETWEEN dateadd(DAY,-7,GETDATE()) AND dateadd(day,1,GETDATE())
June 14, 2006 at 5:42 am
#643598