Help with SQL Query

T

Tom Bruce

I have a MS Access database that contains a column of IP addresses in one of
the tables. I want to create a query that shows me the number of times each
ip address appears in the data. I want the ip number to appear once in the
result with another column that shows how many times it appears. What is
the SQL query that does this?

Thanks
Tom
 
T

tomt

Try using the Find Duplicates query wizard (one of the
choices when you click on New while in the query tab).

That will give you a count of your dupes.
 
V

Van T. Dinh

Use a Totals (Group By) Query:

SELECT T.[IPAddress], Count(T.[IPAddress])
FROM YourTable As T
GROUP BY [IPAddress]
 

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

Top