Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Transpose

Author  Topic 

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2007-05-14 : 23:16:04
I have a table with following data,

1, a
1, b
1, c
2, a
2, b

I need the ootput as

1, abc
2, ab

How to achieve this?



------------------------
I think, therefore I am - Rene Descartes

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-05-14 : 23:24:36
see http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx


KH

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-05-15 : 04:40:43
Where do you want to show your concatenated data?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -