Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing Data
Message
De
15/11/2001 22:34:07
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
 
 
À
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:
00582525
Vues:
34
Hi,
May try SQL, e.g. select * from tableb where fd1+fd2+fd3 not in;
(select fd1+fd2+fd3 from tablea) into cursor new_recs
Then append it from the cursor. But if there are many fields with different data types then it may not be a good idea.
With Oracle, it'd be better, insert into tablea select * from tableb;
where (fd1,fd2,fd3) not in (select fd1,fd....)

Wilfred

>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,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform