Sorting Records

L

Les

I have a large number of records (over 200,000) in the following format

client number item sold
123456 description1
123456 description2
123456 description3

some records will have data repeated like so

client number item sold
123456 description1
123456 description2
123456 description1

I need to identify the client numbers where the description is repeatedand
only show the description which is repeated. I have run a find duplicate
records but that then shows all the client numbers and all the other
descriptions.

At the moment these records are in Access 2002 imported from Access 97.

Is there a simple way to do this.

Thanks

Les
 
R

Ron Weiner

Les

If I understand you correctly this query will show all of the customers that
had more than one of the same ItemSold.

SELECT Count(ClientNumber) AS [Num Dups], ClientNumber, ItemSold
FROM YourTable
GROUP BY ClientNumber, ItemSold
HAVING Count(ClientNumber)>1
ORDER BY ClientNumber, ItemSold;

Ron W
 
L

Les

Ron thats exactly right thanks.

Les


Ron Weiner said:
Les

If I understand you correctly this query will show all of the customers that
had more than one of the same ItemSold.

SELECT Count(ClientNumber) AS [Num Dups], ClientNumber, ItemSold
FROM YourTable
GROUP BY ClientNumber, ItemSold
HAVING Count(ClientNumber)>1
ORDER BY ClientNumber, ItemSold;

Ron W

Les said:
I have a large number of records (over 200,000) in the following format

client number item sold
123456 description1
123456 description2
123456 description3

some records will have data repeated like so

client number item sold
123456 description1
123456 description2
123456 description1

I need to identify the client numbers where the description is repeatedand
only show the description which is repeated. I have run a find duplicate
records but that then shows all the client numbers and all the other
descriptions.

At the moment these records are in Access 2002 imported from Access 97.

Is there a simple way to do this.

Thanks

Les
 

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


Top