Summarize aggregated data

前端 未结 5 1820
挽巷
挽巷 2021-01-13 14:27

I have a table like as follows:

SoftwareName    Count    Country
Project         15       Canada
Visio           12       Canada
Project         10       USA
Visi         


        
5条回答
  •  不知归路
    2021-01-13 14:58

    i think you can use this Link :

    Sum of unique records - better performance than a cursor

    and i think using PIVOT Function have a best performance rater SUM() function.!

提交回复
热议问题