COMPARE_TABLES_EXTRACT <>

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I have a customer table1 in a access database with a Coloumn "Code" e.g
101931.
and on a monthly basis i get a update from outside source in excel sheet
Updated Customer table, with additional customers (code) added to the sheet.

I am converting the excel sheet into a new table2 which includes additional
" codes" along with old ones added during the month.

Now i require to compare two tables and extract only the one which is not in
Table1 .

In other words i need to list new customers (codes)

Thanks
ron
 
Rony,

Try a query along the lines of:

SELECT * FROM Table2
WHERE Table2.Code Not In (SELECT Table1.Code FROM Table1)

Start making a new query in design view, add no table and go to SQL
view, where you can paste this SQL expression. Just make sure you have
the correct table and field names!

HTH,
Nikos
 
Thank you Nik
Rony

Nikos Yannacopoulos said:
Rony,

Try a query along the lines of:

SELECT * FROM Table2
WHERE Table2.Code Not In (SELECT Table1.Code FROM Table1)

Start making a new query in design view, add no table and go to SQL
view, where you can paste this SQL expression. Just make sure you have
the correct table and field names!

HTH,
Nikos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top