SyntaxFix
Write A Post
Hire A Developer
Questions
Try this way:
select * from tab where DateCol between DateAdd(DD,-7,GETDATE() ) and GETDATE()