Hi All,
I am having some problems hiding the results from a duplicate query.
what happens is that I find all of the duplicates using the find duplicate query, but it counts it twice as it shows all duplicate items.
how can i re-write the query below to only show the duplicated entries once.
I have tried show Unique Values and Unique records, but it wasn't working.
here's my query:
I am having some problems hiding the results from a duplicate query.
what happens is that I find all of the duplicates using the find duplicate query, but it counts it twice as it shows all duplicate items.
how can i re-write the query below to only show the duplicated entries once.
I have tried show Unique Values and Unique records, but it wasn't working.
here's my query:
Code:
SELECT Sheet1.AgentName, Sheet1.AgentSSN, Sheet1.Source, Sheet1.State
FROM Sheet1
WHERE (((Sheet1.AgentName) In (SELECT [AgentName] FROM [Sheet1] As Tmp GROUP BY [AgentName] HAVING Count(*)>1 )) AND ((Sheet1.State)="AL"))
ORDER BY Sheet1.AgentName;