MySQL query - using SUM of COUNT

后端 未结 5 930
刺人心
刺人心 2021-01-07 16:27

This query:

SELECT COUNT(source) AS count
FROM call_details
GROUP BY source
HAVING count >1

Returns about 1500 (the number I\'m looking

5条回答
  •  离开以前
    2021-01-07 16:38

    SELECT COUNT(count) FROM (SELECT COUNT(source) AS count
    FROM call_details
    GROUP BY source
    HAVING count > 1) as A
    

提交回复
热议问题