Comparing data between two tables

G

gatarossi

Dear all,

In my access database there are two tables. The first one has complete
information: customer_code, item_code, item_code_2, company, and
values. The second has only the item_code, item_code_2 and values.

Now I need to compare the values between the tables, but I have a big
problem: I need the all data in the first table, and when I execute
the consult the values stay in duplicity. I already think in create
another table, but I don't know... because I have some data in one table
that I don't have in another...

How can I solve this problem?

Thanks a lot!!!

André.
 
P

pietlinden

Dear all,

In my access database there are two tables. The first one has complete
information: customer_code, item_code, item_code_2, company, and
values. The second has only the item_code, item_code_2 and values.

Now I need to compare the values between the tables, but I have a big
problem: I need the all data in the first table, and when I execute
the consult the values stay in duplicity. I already think in create
another table, but I don't know... because I have some data in one table
that I don't have in another...

How can I solve this problem?

Thanks a lot!!!

André.

use an outer join. And having item_code_# sounds a LOT like a
normalization problem... that should be in a separate table.
 

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

Top