Click here to Skip to main content
15,994,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,


How to concatenate column values from multiple rows

Table A

FName LName amount Id
A B 100 1
A B 200 2
A C 400 3
A B 300 4

I need the result like :
FName LName totalAmount count Id
---------------------------------------------
A B 600 3 1,2,4
A C 400 1 3


How to get it.

Please help me....

Thanks & Regards

Vineetha..
Posted

1 solution

 
Share this answer
 
Comments
Vineetha Ravindranath 25-Aug-14 2:30am    
Thank you.. It's Working...
OriginalGriff 25-Aug-14 3:00am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900