I can't figure out what the problem is. Using SQL Server 2005 to run the below query:
I'm getting no results when I search for the above range. The weird thing is if I break them down from 9/1 to 12/31 and then 1/1 to 3/31, it works for both. I tried searching different years and don't have this problem. It seems to be that range only. I also tried going back a month at a time 8/1, 7/1..etc. and have the same problem until I hit 02/01/2013 to 03/31/2014. I get results returned but only for 2014 records. I confirmed that I have other for all the other months in between.
Has anyone seen this before? It makes me think at times that the query is not refreshing properly. Is there any way to "force" a refresh on the query? I tried closing the sql file and opening it up again without any luck.
Thanks.
Code:
SELECT *
FROM Explorer E
JOIN ReportEvent RE ON E.ReportID = RE.ReportID
JOIN Report R ON E.ReportID = R.ReportID
JOIN "Order" O ON E.OrderID = O.OrderID
WHERE convert(varchar(10), O.CompleteDate, 101) BETWEEN '09/01/2013' AND '03/31/2014'
I'm getting no results when I search for the above range. The weird thing is if I break them down from 9/1 to 12/31 and then 1/1 to 3/31, it works for both. I tried searching different years and don't have this problem. It seems to be that range only. I also tried going back a month at a time 8/1, 7/1..etc. and have the same problem until I hit 02/01/2013 to 03/31/2014. I get results returned but only for 2014 records. I confirmed that I have other for all the other months in between.
Has anyone seen this before? It makes me think at times that the query is not refreshing properly. Is there any way to "force" a refresh on the query? I tried closing the sql file and opening it up again without any luck.
Thanks.