SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Hoe to concatenate colums into one row
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mayoorsubbu
Yak Posting Veteran

India
94 Posts

Posted - 03/30/2014 :  09:02:09  Show Profile  Reply with Quote
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

Sweden
30113 Posts

Posted - 03/30/2014 :  09:21:24  Show Profile  Visit SwePeso's Homepage  Reply with Quote
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

India
94 Posts

Posted - 03/30/2014 :  09:49:22  Show Profile  Reply with Quote
hi peso
sql server 2000
Go to Top of Page

khtan
In (Som, Ni, Yak)

Singapore
17584 Posts

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


KH
Time is always against us

Go to Top of Page

mayoorsubbu
Yak Posting Veteran

India
94 Posts

Posted - 03/31/2014 :  12:27:42  Show Profile  Reply with Quote
thank u khtan
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000