SyntaxFix
Write A Post
Hire A Developer
Questions
Query in Parado's answer is correct, if you want to use MySql too instead GETDATE() you must use (because you've tagged this question with Sql server and Mysql):
select * from tab where DateCol between adddate(now(),-7) and now()