Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with a query

Status
Not open for further replies.
Feb 3, 2003
28
0
0
US

This is for a domain counter I'm trying to get going.
when someone hits the web site it records the IP address, resolves the IP to a domain name if possible and number of times they have visited the site.

What happens is I get hits from the same domain but different IP's so I have many rows that have the same resolved name because they have a different IP everytime they visit our site. How do I find all of the same resolved names and add up the number of times they have visited?

the table has IP address, resolved name, aka and hits

I'm using the aka and hits to do this.
I need to find all of the names that are the same in aka and add up all of the values from hits that go with them.
 
try this out:
select aka,sum(hits) from <your table name>
group by aka
order by aka
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top