Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing Data
Message
From
15/11/2001 22:34:07
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
 
 
To
15/11/2001 19:08:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00582466
Message ID:
00582525
Views:
33
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,
Previous
Reply
Map
View

Click here to load this message in the networking platform