DECLARE @DateA DATETIME, @DateB DATETIME SET @DateA = --whatever SET @DateA = --whatever SELECT * FROM DummyTable WHERE DATEDIFF(DAY, @DateA, @DateB) >= 0
select * from TableName where MyDateTimeColumn BETWEEN (GETDATE() and (GETDATE()-3)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)