Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Checking 2 tables for duplicate entries

Posted on 2011-02-19
2
Medium Priority
?
384 Views
Last Modified: 2013-11-05
Hello folks,

I have two tables in an Access database. Now 1 of these tables (new_table) I would like to compare with the other (old_table) to find out what has changed since the last update.. Both tables has a field called SubCategory3.

I would like to query both tables on category 3 to see what has changed in the new_table because at the moment new_table.subcategory3 contains 600 records and old_table.subcategory3 contains 559 records.
I'm using the following query but think I'm on the wrong track as i'm getting all the identical records from both tables but not the records that have changed  :D.
SELECT DISTINCT Table_01.SUBCATEGORY3, Table_011_Old.SUBCATEGORY3
FROM Table_01 INNER JOIN Table_011_Old ON Table_01.SUBCATEGORY3 = Table_011_Old.SUBCATEGORY3;

Open in new window

0
Comment
Question by:Eaddy Barnes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 1600 total points
ID: 34936062
Use the Unmatched Query Wizard  to do this.
use the new_  table as the first table in wizard.
0
 
LVL 9

Assisted Solution

by:borki
borki earned 400 total points
ID: 34936732
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question