mssql
select ShopId,RegionalManager = (select RegionalManager +',' from T where shopId = t1.ShopId for xml path('') ) from T t1 group by shopid