I\'m using sql server 2008. How to query out a data which is the date is today and 7 days before today ?
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 affffdate(now(),-7) and now()