Solved

Checking 2 tables for duplicate entries

Posted on 2011-02-19
2
381 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 400 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 100 total points
ID: 34936732
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

749 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