I have a table variable @Holding two columns: an id (not unique) and a message:
id     message
----   -------
2      give
2      me
2      help 
3      Need
3      help
1      help!
The result should be
2     give me help
3     Need help
1     help!
This it very much simplified, but shows that there are id which may exist more than once, and some kind of text which should be concatenated into a string.
I cannot manage it to loop through this table variable (but not through a table too!).
I tried a cursor (which I did not understand correctly) but it failed of course. The number of records are not that much, not even 100 in that table variable.
Thanks yr. help Michael
 
     
     
     
     
    