Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表格,每行都包含Customer No_and Amount。我想写一份报告,按客户、销售人员显示总金额。我可以内部加入另一个表来获取销售人员。只是无法弄清楚Customer No_和Amount查询。
Customer No_
Amount
我认为您可以将 sum(i.Amount) 添加到您的选择中,也可以添加到您的组中。(抱歉,我目前无法访问 SQL Server 来测试这个。)