Possible Duplicate:
Simulating group_concat MySQL function in Microsoft SQL Server 2005?
How will I insert rows (which are dynamic) to a single column concatenated by space to a temp table. I'm using SQL Server 2005.
Ex. LetterTable
:
LetterID LetterRow
1 a
2 b
3 c
4 d
5 e
to insert to a temp table like
#TempTable
:
LetterID LetterRow
1 a b c d e
Thanks in advance.