Originally Posted by
rpeare
I would rule out a hardware problem almost immediately. I assume the 13 times you ran the query were for different date ranges or when you ran it for the same date range you got the same results (even if they were wrong)
With a query this complex I don't know that the SQL would help can you provide a sample database for analysis.
The things that I would check are:
1. Is your date actually stored as a date and not as a text field
2. Have you pared down your query to the simplest part, then added pieces as you verify it's still running correctly? if not, try it and see where it starts to break down.