I have this data in a table
grpledger Confirm
1A01 yes
1A02 Yes
1 A03 No
2A22 No
3A33 Yes
3A36 No
I also need to concatenate the ledgers by grp
The result needs to look like this. How do I do this without a cursor or loop?
grpledger Confirm
1A01|A02|A03 Yes|Yes|No
2A22 No
3A33|A36 Yes|No
All this needs to be done dynamically for the tables having more number of rows, please help.