Jul 6, 2008 #1 xxing Programmer Feb 17, 2004 61 NZ Hi I have a Table with this data #Fruit Apple Pear Orange I would like a table that has the following #Final Apple, Pear, Orange i.e changing a column to a single row. Regards Mark
Hi I have a Table with this data #Fruit Apple Pear Orange I would like a table that has the following #Final Apple, Pear, Orange i.e changing a column to a single row. Regards Mark
Jul 6, 2008 1 #2 RyanEK Programmer Apr 30, 2001 323 AU Hi, How about this? Code: DECLARE @mystring varchar(100) SELECT @mystring = COALESCE(@mystring + ', ', '') + [Field] FROM [Table] select @mystring Ry Upvote 0 Downvote
Hi, How about this? Code: DECLARE @mystring varchar(100) SELECT @mystring = COALESCE(@mystring + ', ', '') + [Field] FROM [Table] select @mystring Ry
Jul 7, 2008 Thread starter #3 xxing Programmer Feb 17, 2004 61 NZ Thank you RyanEk for your valuable post. A star for you!! Regards Mark Upvote 0 Downvote