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
 General SQL Server Forums
 New to SQL Server Programming
 Hoe to concatenate colums into one row

Author  Topic 

mayoorsubbu
Yak Posting Veteran

95 Posts

Posted - 2014-03-30 : 09:02:09
I have a table like so

code remarks
1234 abcd
4567 efgh

I need to concatenate the values in the remarks column into one row like below

abcd, efgh....how is it possible

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2014-03-30 : 09:21:24
Which version of SQL Server are you using?



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page

mayoorsubbu
Yak Posting Veteran

95 Posts

Posted - 2014-03-30 : 09:49:22
hi peso
sql server 2000
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2014-03-30 : 10:46:25
http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/rowset-string-concatenation-which-method-is-best.aspx


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

mayoorsubbu
Yak Posting Veteran

95 Posts

Posted - 2014-03-31 : 12:27:42
thank u khtan
Go to Top of Page
   

- Advertisement -