OK,now your timeout is clear.
with a Relative Cost of ~2 millions, your query requires some support to speed up.
You just see the first 6 empty results.
First reason: you run over ALL records in ...PhoneMaster
with an inner loop in ...Testmaster on IndexCall,OrdeCode, TestCode,...Result_Index
So your timeout is not surprising.
I'd suggest creating an Index on PhoneDateODBC to speed up your query. >> lower Relative Cost
with 2 million I'm quite sure that you even timeout over ODBC.
So I'm back to my earlier suggestion:
Let your query run from terminal prompt,
have a coffee or two and maybe it is completed then.
This is not your fault.
Blame the designer of that ugly VIEW
- Log in to post comments

