Skip to content
Advertisement

Comma-separated values to rows with sum in SQL Server

Output:

I want to convert the output to this format:

i.e. comma-separated all the orgs and sum of it’s area value.

Advertisement

Answer

Sub-query is really not necessary :

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement