Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compare 2 tables
Message
From
03/08/2004 05:47:10
 
 
To
03/08/2004 04:43:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00930260
Message ID:
00930275
Views:
17

hi,

i want to compare between 2 tabels,

table 1 contain accumulated data,table 2 contain new data,

if table2.customer_no =table1.customer_no
delete from table2
..
append table2 to table1

thanks.


In VFP8
INSERT INTO table1 ;
(SELECT * FROM table2 WHERE customer_no NOT IN (SELECT customer_no FROM table1)
* DELETE FROM table2 && generic
* ZAP IN table2 && if you have exclusive access
* USE IN table2 && if it is a temp cursor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform