I have the following query:
SELECT Account, Unit, SUM(state_fee), Code FROM tblMta WHERE MTA.Id = \'123\' GROUP BY Account,Unit
Thi
There is no built-in aggregate function to concatenate, but this article discusses several alternative solutions, including a user-defined concatenate aggregate function:
https://www.simple-talk.com/sql/t-sql-programming/concatenating-row-values-in-transact-sql/