Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is a good way to join on two integer fields?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01310968
Message ID:
01311024
Views:
14
You're thinking VFP way instead of SQL way. You should work with SQL Server or some other client server RDBMS more. :)

>After I posted my initial message I thought about the same approach you are suggesting. And actually it should work even better as the tables do have indexes on both fields. I just keep forgetting that the JOIN does not have to be only ON one field but can have the AND clause.
>
>Thank you very much for your help.
>
>>It depends on what indexes you have. If you have indexes on each int field than
>>
>>select * from mytable1 join mytable2 ;
>>  on mytable1.intfld1 = mytable2.intfld1 and mytable1.intfld2 = mytable2.intfld2
>>
>>
>>It's also standard SQL that will run on most other backends w/o modifications.
>>
>>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform