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
 Script Library
 ADDING COMMENTS IN A SINGLE STRING

Author  Topic 

hizakemi
Starting Member

33 Posts

Posted - 2007-04-23 : 09:55:48
Hello,
I would like to know if it is possible to add comments from different columns from table in sql into a single column. Please, see the attached table. I want all comments to be in one column. The outcome should be:
CONFIRMED NEED TO CONFIRM SIGNER AT <CR><LF> received e-mail:<CR><LF> Called Imran again today to see if .



Ideally, I would like to receive all comments in a single string of characters, perhaps separating the comments by <CR><LF>

Here is the table. Sorry my table doesnt look good, but it has the following fields: DATE, LEXNEX_DECISION, COMMENT

DATE LEXNEX_DECISION COMMENT
4/3/2007 COMPLETE CONFIRMED NEED TO CONFIRM SIGNER AT 4/3/2007 COMPLETE received e-mail:
4/3/2007 COMPLETE Called Imran again today to see if .


Help!

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-04-23 : 09:59:18
see http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx

and please post in appropriate forum


KH

Go to Top of Page
   

- Advertisement -