Duplicates Query

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

Guest

I am working with Access 2003 - I have two client databases and I want to
compare both lists, find out what clients are on one list and not the other.

My question is what and how do I create a query that will sort through both
lists and come back to me with names that do not match? For example, on one
list there are 854 clients, the other list has 900. I would like to run a
query which will show me the 46 clients not on the 854 list.

Hope I haven't confused anyone and hope this is possible to do. Thanks!!

Anna
 
It depends by what you mean by matching names. Are McDonald, MacDonald and
MacDonald matches or not? And can you be sure that the shorter list is a
proper subset of the longer one? That is, are all names on the shorter also
on the longer? But if the longer list was created by adding entries to a copy
of the shorter, and no changes have been made to the names in common, then
this will do what you want

SELECT * FROM LongList
WHERE LongList.LastName & LongList.FirstName NOT IN
(SELECT SHortList.LastName & ShortList.FirstName FROM ShortList)

CAUTION: Air code - Not tested!
 
Anna said:
I am working with Access 2003 - I have two client databases and I want to
compare both lists, find out what clients are on one list and not the other.

My question is what and how do I create a query that will sort through both
lists and come back to me with names that do not match? For example, on one
list there are 854 clients, the other list has 900. I would like to run a
query which will show me the 46 clients not on the 854 list.

Hope I haven't confused anyone and hope this is possible to do. Thanks!!

Anna

Have you tried the Unmatched Query Wizard?
 
Hi - I have two lists which are suppose to be identical except 46 clients
were not placed on the shorter list. I wanted to see if there was a query
which would compare both lists and only bring out the 46 from the bigger list
so I can add them is the smaller one so both will match once again.
 

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

Similar Threads

Query Question - how to... 2
Combine Duplicates in Query 0
Pull latest date from Multiple entries 2
Cross tab query 5
SoftMaker for Linux 3
Counting multiple memberships 1
Combination Sum 4
Distilling a Query? 3

Back
Top