Retrieve unique values in a table and rank by number of times they occur

We have a table recording hits on our web site. How could we write a query to retrieve unique IP addresses AND. The number of times each IP address occurs?

Thanks in advance
Who is Participating?
SELECT ip_address, COUNT(*) AS Times_Hit
FROM myHitTable
GROUP BY ip_address
SELECT ip_address,COUNT(ip_address) AS cnt
FROM table_name
GROUP BY ip_address
nhmediaAuthor Commented:
Thanks, both solutions  worked a treat
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.