MySQL query - using SUM of COUNT

后端 未结 5 983
刺人心
刺人心 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 17:01

    Assuming you are going to fetch all the results in the application anyway, I think the most efficient way would be to just sum it up in the application code.

提交回复
热议问题