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 2000 Forums
 Transact-SQL (2000)
 Dynamic Pivoting..

Author  Topic 

Arijit
Starting Member

25 Posts

Posted - 2006-01-10 : 04:12:20
Hi,
I have a table storing values like this.Second column value could be anything numeric.
Col Col1
---- ------
a 1
a 2
a 3
b 1
b 2
b 1001
Now I want to show the data like this.

Col1 Col2
---- ------
a 1,2,3
b 1,2,1001

Can anyone put some hints to write the query.
I am trying a lot. but still no logic is coming in my mind.
Regards
Arijit Chatterjee

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-01-10 : 04:15:58
Refer this
http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx?Pending=true

Madhivanan

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

- Advertisement -