我试图找到与每个客户对应的产品价格总和,但找不到每个客户名称的不同总和:
SUM of total price | Product ID | Order ID| Customer name
$71.97 240400300006 1235822165 Alberta Beasley
$67.50 230100600041 1238001242 Alberta Beasley
$26.90 240700200010 1236974404 Alberta Beasley
$249.60 230100100045 1230873918 Alberta Cacitti
$204.40 220200100044 1242419364 Alberta Cacitti
$143.70 220200100056 1239120771 Alberta Cacitti
我希望我的输出是:
Alberta Beasley $166.37
Alberta Cacitti $597.7
请问有什么想法吗?