Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Matching two tables
Message
De
03/03/2010 04:18:03
 
 
À
03/03/2010 04:08:45
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:
01452222
Vues:
72
>I want to match two tables with the same checkno and acctno. So I do this,
>
>SELECT * FROM mds ;
> INNER JOIN acic ;
> ON mds.checkno+mds.acctno = mds.checkno+mds.acctno ;
> INTO CURSOR csr_Match
>
>but it doesn't give me the correct matched table..
>
>What's wrong?


Evelyn,

Where is the table acic in the join condition ?

If you do not have an index on checkno+acctno , try the following
select * ;
    from mds ;
        join acic  ;
               on   ( mds.checkno = acic.checkno ) ;
                and (mds.acctno = acic.acctno )
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform