G
Guest
I'm looking for help with queries. I have a gigantic database that has many
duplicate entries. I know how to use the duplicate query wizard (and have
used it successfully many times in the past), but it limits me to looking for
duplicates within certain fields and does not allow me to exclude certain
values. For example, I want to run a duplicate query looking for when "Field
A" and "Field B" (from a table called "Master Table") both contain duplicate
queries. This is easy to do...and using the expresison builder I get...
In (SELECT [Field A] FROM [Master Table] As Tmp GROUP BY [Field A],[Field B]
HAVING Count(*)>1 And [Field B] = [Master Table].[Field B])
My question is how do I add a third criteria specifying a NOT equal in a
third field? Right now my query shows me all entries for which both Field A
and Field B are equal. But what if I want to see where Field A is equal,
Field B is equal, but field C is NOT equal? How would I change this query?
duplicate entries. I know how to use the duplicate query wizard (and have
used it successfully many times in the past), but it limits me to looking for
duplicates within certain fields and does not allow me to exclude certain
values. For example, I want to run a duplicate query looking for when "Field
A" and "Field B" (from a table called "Master Table") both contain duplicate
queries. This is easy to do...and using the expresison builder I get...
In (SELECT [Field A] FROM [Master Table] As Tmp GROUP BY [Field A],[Field B]
HAVING Count(*)>1 And [Field B] = [Master Table].[Field B])
My question is how do I add a third criteria specifying a NOT equal in a
third field? Right now my query shows me all entries for which both Field A
and Field B are equal. But what if I want to see where Field A is equal,
Field B is equal, but field C is NOT equal? How would I change this query?