Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper syntax for a compound join
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00247208
Message ID:
00247338
Vues:
32
>>Jim,
>>
>>>FROM ves!master2 LEFT OUTER JOIN arcadr01 ;
>>ON Master2.custno + Master2.cshipno = Arcadr01.custno + Arcadr01.cshipno
>>
>>this only applies if all fields are caracter. If they're numeric you can get unexpected results. If all the mentioned fields are indexed it's maybe better to use
>>
>>FROM ves!master2 LEFT OUTER JOIN arcadr01;
>>LEFT OUTER JOIN ves!master2 ;
>>ON Master2.cshipno = Arcadr01.cshipno AND Master2.custno = Arcadr01.custno ;
>
>
>They were character! and yes having 938484 + 1 would be funny. Had the vaues been numeric I would have done a str() function and doen the index to match.

In a numeric case, I might look at the BINTOC() and CTOBIN() functions for creating the indexes. Should be more compact and faster.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform