Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is a good way to join on two integer fields?
Message
 
 
À
16/04/2008 05:41:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01310968
Message ID:
01311024
Vues:
15
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform