View Single Post
  #4 (permalink)  
Old February 11th, 2004, 04:00 PM
joefawcett's Avatar
joefawcett joefawcett is offline
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Surely you just need:
Code:
SELECT [type], SUM(hits)
FROM tblCounter
GROUP BY [type]
?

--

Joe
Reply With Quote