keepingbusy
Programmer
Hi
Regarding Mike Lewis' answer to a problem on thread184-1094456, I have used this to accomplish and overcome a problem we had with new titles in two tables.
The two tables are called UPCONLY and TEXTWEB.
The following statement looks at the table UPCONLY (field UPCOLD) and compares it to TEXTWEB (field COLUMN5) to see if there are any new UPC numbers in the new table, not already in the old table (This is an automated process that later creates CSV files for upload via phpmyadmin to a website.
Some files can be over 200,000 titles so I am looking for a way to reverse the process in that another table can store titles that are in the new table that are no longer on the old.
Because of the amount of records, it's quite difficult to see if the below works:
Can anyone suggest if the second code is correct to achieve my task?
Many thanks
Lee
Windows XP
Visual FoxPro Version 6 & 9
Regarding Mike Lewis' answer to a problem on thread184-1094456, I have used this to accomplish and overcome a problem we had with new titles in two tables.
The two tables are called UPCONLY and TEXTWEB.
The following statement looks at the table UPCONLY (field UPCOLD) and compares it to TEXTWEB (field COLUMN5) to see if there are any new UPC numbers in the new table, not already in the old table (This is an automated process that later creates CSV files for upload via phpmyadmin to a website.
Code:
SELECT * FROM TEXTWEB ;
where COLUMN5 NOT IN ;
(SELECT UPCOLD FROM UPCONLY);
INTO TABLE tempfile+'.dbf'
Because of the amount of records, it's quite difficult to see if the below works:
Code:
SELECT * FROM UPCONLY ;
WHERE UPCOLD NOT IN ;
(SELECT COLUMN5 FROM TEXTWEB) ;
INTO TABLE TEMP.DBF
Many thanks
Lee
Windows XP
Visual FoxPro Version 6 & 9