Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Matching two tables
Message
 
 
À
03/03/2010 07:06:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01452221
Message ID:
01452232
Vues:
58
>Both are characters.
>
>I have sample data on both tables with no matching records. But when I run the code, it results to 200+ records.

Evelyn,

As Gregory pointed out, you made a typo in the JOIN condition - you used the same table twice on both side of expression, therefore you got a cartesian join.

You need to join on
SELECT * FROM mds ;
INNER JOIN acic ;
ON acic.checkno = mds.checkno and acic.acctno = mds.acctno ;
INTO CURSOR csr_Match
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform