conditions for the query

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

Guest

My question deals with duplicate queries. I have duplicates that resulted
from a query and I want to know the number of duplicates or if I can number
the duplicates with the same number.

For example:

Number ID
1 4433
1 4433
2 8733
2 8733
2 8733
3 9121
3 9121


If anyone has some suggestions it would be greatly appreciated
 
SELECT YOURTABLE.ID, Count(YOURTABLE.ID) AS [How many]
FROM YOURTABLE
GROUP BY YOURTABLE.ID;
 

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

Back
Top