Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inefficient query
Message
 
 
To
24/01/2007 16:57:51
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01188966
Message ID:
01188983
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
>I suppose I could do that. I have not tried that approach before. I suspect in this case that all the trimming and padding I'm doing defeats the indexes, making this a long running prospect, but I fear getting less accurate results.
>
>My brain is a bit fuzzy today, but I wonder if there's a definitive way to test that the results are identical between 2 queries, if I want to test various approaches? If I get a result cursor with 1100 rows, can I quickly prove that results remain identical?
>
>>Can you just build your select as a string (using textmerge) and then execute using macro substitution? This way you would not need such complex logic.
>>

select *, 'Missing' as cInfo from FirstResult where ID not in (select ID from mySecondResult) ;
union all ;
select *, 'Extra ' as cInfo from mySecondResult where ID not in (select ID from FirstResult)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform