Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing Data
Message
 
 
À
15/11/2001 19:08:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00582466
Message ID:
00582511
Vues:
28
>Hi All,
> I have one table (table A) that has the data I want to compare with another table (table B). I was thinking of using the scatter memvar command in table A and scanning through table B. If there were records that I had missed or were unique I would append them into table A from table B. Has anyone done this before? Is there a better way to compare data in two tables?
>Thanks,

Not sure, I understand your question completely. Do you want to find all records in B, which are not in A and if yes, append them?

select * from B where KeyID not in (select KeyID from A) into cursor curAppend
select A
append from dbf('curAppend')
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform