P
Paul (TRX)
I wonder if anybody may be able to help me out with a problem I am having. I
am using Access 2003. I was given a massively huge table (over 1,000,000
entries) and asked to figure out a way we may be able to find duplicates. We
get data from several different sources, and often get the same person more
than once. For example, if Dr. Peter Venkman has a New York office as well as
a Pennyslvania office, we may have him in our records for both offices.
We may have Michael J. Fox also in our records as Michael Fox. We may have
Shamus O'Connor also in our records as Shamus O Connor. What I need to be
able to do is to query the table against itself in several different ways to
see if there are duplicates. For example, I may query by the first name, last
name, and date of birth to see if we have the same person twice for some
reason. I may also query by our client ID we've given them, and there are
many other methods I may try.
The problem I am running into is that the only way I can think of to do this
is to query the table against itself. In other words, this means, in my
query, I basically see ClientTable and ClientTable_1 and I run my query as
though it is two tables. The problem is, since I am querying the table
against itself, this gives me EVERY SINGLE record as a duplicate. For
example, say Dr. Egon Spengler is only in our table once. It still considers
him a match with himself.
Also, a somewhat related question... Is there a way to run a query to find
where some things match, but others don't? For example, could I run a query
that will actually find where the first and last name match, but the client
ID doesn't, or where the first and last name match, but the date of birth
does not? An unmatched query does no do this, because that is only finding
records from one table that have NO match in the other, and that obviously
won't work since we are talking about one table here. Thanks in advance for
any and all help you may be able to offer.
--
Have a nice day!
~Paul
TargetRx
The power to know what comes next.
~~~~~~
| |
|c--OD
| _)
| |
|-. |
/ `-# /A
/ /_|..`#.J/
||LJ `m''''
ptaylor
am using Access 2003. I was given a massively huge table (over 1,000,000
entries) and asked to figure out a way we may be able to find duplicates. We
get data from several different sources, and often get the same person more
than once. For example, if Dr. Peter Venkman has a New York office as well as
a Pennyslvania office, we may have him in our records for both offices.
We may have Michael J. Fox also in our records as Michael Fox. We may have
Shamus O'Connor also in our records as Shamus O Connor. What I need to be
able to do is to query the table against itself in several different ways to
see if there are duplicates. For example, I may query by the first name, last
name, and date of birth to see if we have the same person twice for some
reason. I may also query by our client ID we've given them, and there are
many other methods I may try.
The problem I am running into is that the only way I can think of to do this
is to query the table against itself. In other words, this means, in my
query, I basically see ClientTable and ClientTable_1 and I run my query as
though it is two tables. The problem is, since I am querying the table
against itself, this gives me EVERY SINGLE record as a duplicate. For
example, say Dr. Egon Spengler is only in our table once. It still considers
him a match with himself.
Also, a somewhat related question... Is there a way to run a query to find
where some things match, but others don't? For example, could I run a query
that will actually find where the first and last name match, but the client
ID doesn't, or where the first and last name match, but the date of birth
does not? An unmatched query does no do this, because that is only finding
records from one table that have NO match in the other, and that obviously
won't work since we are talking about one table here. Thanks in advance for
any and all help you may be able to offer.
--
Have a nice day!
~Paul
TargetRx
The power to know what comes next.
~~~~~~
| |
|c--OD
| _)
| |
|-. |
/ `-# /A
/ /_|..`#.J/
||LJ `m''''
ptaylor