Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL question foxpro 3
Message
From
15/05/2004 16:06:44
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00904009
Message ID:
00904385
Views:
19


you can try with:

SELECT Table1.*, LOOKUP(Table2.SomeField,Table1.cId,Table2.cID) SomeField;
FROM Table1
INTO...


Thank you, this also works but is very slow.


Zakaria al Azhar


If you use a JOIN and the external loop table have not a index for the ON condition,
VFP build a temp index for do the join with o(n1Log(n2)) complexity.

Add a index into the Table2 for cID field, and the select run in a flash:
SELECT Table2
INDEX ON cID TAG cID
....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform