if you've any index on any of date fields then useSELECT x FROM tableWHERE [Date from Creation-Timestamp] >= dateadd(dd,datediff(dd,0,[Date from Modifying-Timestamp]),0)AND [Date from Creation-Timestamp] < dateadd(dd,datediff(dd,0,[Date from Modifying-Timestamp]),1)orSELECT x FROM tableWHERE [Date from Modifying-Timestamp] >= dateadd(dd,datediff(dd,0,[Date from Creation-Timestamp]),0)AND [Date from Modifying-Timestamp] < dateadd(dd,datediff(dd,0, [Date from Creation-Timestamp]),1)