Navigation: SQL Syntax >
Date Range Query for the last 7 days
MySQL
select * from Transactions
where thTransdate between curdate() - 7 and curdate()
MSSQL
where thTransdate = GetDate()- 7 AND GetDate()