Is it possible to concatenate strings with one or more of other group by function like sum, avg, count etc .
Say I have the following table
Id Name Order Value  
1  a    1     100  
2  b    2     200  
3  c    1     300  
4  d    1     100  
5  e    2     300
Now if I want the result to be something of this sort
Order Name   Value Count  
1     a,c,d  500   3  
2     b,e    500   2  
How can i achieve the same using a query on SQL server.
 
     
     
     
    