我需要您就以下情况提供帮助。我有一个表格,其中有两列“CallingNumber”,其中包含不同的冗余电话号码和“CallReason”,它们记录的原因。
then i need a query to generate
=> how many times a unique "callingNumber" is recorded for the same "CallReasonName".
最佳答案
我不知道我是否理解你的意思,但我认为这是一个简单的查询
Select callingNumber, CallReasonName, count(1) as Cnt
from table
Group by callingNumber, CallReasonName
关于mysql - 对于同一个 "callingNumber"记录了多少次唯一的 "CallReasonName",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22892369/