重写此查询的最佳方法是什么

Pav*_*avi 0 sql t-sql group-by sql-server-2008

我的疑问是

 select [ProductType], SUM(total) From isss
 group by [ProductType],total 
Run Code Online (Sandbox Code Playgroud)

我得到了以下输出

   CV   0
    RTV 0
    Audio   4
    CV  34
    RTV 10
    Audio   4
Run Code Online (Sandbox Code Playgroud)

您可以在输出中观察,产品类型正在维修.怎么做对吗?我想要CV,RTV和音频的总和

Gia*_*los 6

SELECT    [ProductType], 
          SUM(total) 
FROM      isss
GROUP BY  [ProductType]
Run Code Online (Sandbox Code Playgroud)