考试报名
考试报名
考试内容
考试大纲
在线客服
返回顶部

备考刷题,请到

CDA认证小程序

In the order table recording e-commerce transaction details, which formula should be used to calculate the overall average purchase amount per customer (with multiple purchases per customer)?
A. SUM/COUNT
B. Directly use Average
C. SUM/DISTINCTCOUNT
D. SUM/AVERAGE
上一题
下一题
收藏
点赞
评论
题目解析
题目评论(0)

With multiple purchases per customer, number of customers is less than number of orders. Cannot directly use average, should use total amount/number of distinct customers. So select C.

正确答案是:C: SUM/DISTINCTCOUNT

专业分析:
在计算每个客户的平均购买金额时,我们需要考虑每个客户的多次购买记录。为了得到每个客户的平均购买金额,首先需要求出所有购买记录的总金额(SUM),然后除以独立客户的数量(DISTINCTCOUNT)。

具体分析如下:
- A: SUM/COUNT:这种方法会将所有购买记录的总金额除以总的购买记录数,这样计算出来的是整体的平均购买金额,而不是每个客户的平均购买金额。
- B: 直接使用Average:这会计算所有购买记录的平均值,而不是每个客户的平均购买金额。
- C: SUM/DISTINCTCOUNT:这种方法先求出所有购买记录的总金额,然后除以独立客户的数量,这样可以得到每个客户的平均购买金额。
- D: SUM/AVERAGE:这种方法没有逻辑上的意义,因为SUM和AVERAGE是不同的计算对象,不能直接相除。

因此,正确的公式是C: SUM/DISTINCTCOUNT,这样可以准确地计算出每个客户的平均购买金额。