Check if there are any rows that satisfy the where condition. You can see what hte where condition is - i.e., if any are between -90 and 0 using this:Select TOP (100) DateDiff(day,getdate(), DateofNext) AS Diff,* from Table1
Also, as a general rule, I prefer to use the <= and >= approach like shown below. It would be faster if there is an index on DateOfNextSelect * from Table1WHERE DateofNext >= CAST(DATEADD(dd,-90,GETDATE()) AS DATE) AND DateofNext <= CAST(GETDATE() AS DATE)