Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimizing Select joins
Message
From
21/06/2003 16:11:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00802633
Message ID:
00802635
Views:
14
>For VFP 6 to take advantage of optimizing a multi-table join on single field keys, must the field name be identical in both tables?
>
>For example:
>
>CUSTOMER.CID I(4) AND ORDER.CID I(4)
>
>verses
>
>CUSTOMER.CID I(4) AND ORDER.OCID I(4)

No. What can influence optimization, however, is whether or not you have an an index on the field, in each of the tables. Usually, it is best to have the index.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform