Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to Optimize my Select
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Trying to Optimize my Select
Miscellaneous
Thread ID:
00443007
Message ID:
00443007
Views:
43
Here is a simple select statement:

select mtrandata.*,mtranitem.*,mtrancount.* ;
from mtrandata,mtranitem,mtrancount ;
where mtrandata.trandataid=mtranitem.trandataid and ;
mtranitem.trandataid=mtrancount.trandataid ;
INTO CURSOR TMPMERCH


Each of the tables have an index on TRANDATAID. When I run SYS(3054,11) it comes back with the following:

Rushmore optimization level for table mtrandata: none
Rushmore optimization level for table mtranitem: none
Rushmore optimization level for table mtrancount: none
Joining table mtranitem and table mtrancount using index tag Trandataid
Joining table mtrandata and intermediate result using temp index

I don't undertand why this join is not optimized. The fields joined are very simple and straight-forward.

Thank you for any help.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Next
Reply
Map
View

Click here to load this message in the networking platform