Count total number of callers?

Posted by Kristopher Ives on Stack Overflow See other posts from Stack Overflow or by Kristopher Ives
Published on 2010-03-19T17:47:15Z Indexed on 2010/03/19 17:51 UTC
Read the original article Hit count: 201

Filed under:

I'm currently doing this query to find the guy who makes the most calls:

SELECT `commenter_name`, COUNT(*) AS `calls` FROM `comments` GROUP BY `commenter_name` ORDER BY `calls` LIMIT 1

What I want now is to be able to find out how many total unique callers. I tried using DISTINCT but I didn't get anywhere.

© Stack Overflow or respective owner

Related posts about sql