分组依据以计算唯一组合的出现次数及其交易总和。

Group By to get count of occurrences of a unique combination and sum of it's transactions.

如何获取唯一组合的出现次数及其交易总和?

我的数据是这样的:

我想要这个:

select Customer,Bank,count(*) Count,sum(Transaction) Transaction
from yourtable
group by Customer,Bank