I have the following table
Year, Category,   CarID,  CarName,   Milage
--------------------------------------------
2012  GroupA       1     Porsche      100
2012  GroupA       2     Mercedes     200
2013  GroupA       3     Ferrari      300
2013  GroupB       4     Uno          200
2013  GroupB       5     Beetle       200
I want to output grouping on Year and Category and return the Car Names and milage as a display column
Year, Category, DisplayString
--------------------------------------------
2012  GroupA    Mercedes (200km), Porsche (100km)  
2013  GroupA    Ferrari (300km)
2013  GroupB    Beetle (200km), Uno (200km)
I am trying to combine a columns to comma delimited string with a group by as well as more than one type column concatenated but I'm not sure how to proceed. I'm using SQL Server 2012.
 
     
     
    