Hi,
I want to ask how would I concatenate multiple columns of a row into a single row or string?
Ex:
FirstName LastName Country
John Cruz Philippines
Result:
John,Cruz,Philippines
I just need it now..
help help..
thanks
Concatenate multiple columns of a row into a single row or string
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

SenthilkumarRank #387 · 6.5K reputationPosted Apr 27, 2012, 12:35 AM EDT
It is simple and you can concatenate the result as single column.
SELECT FirstName+','+LastName+','+Country AS [Result] FROM table_name
Try this and let me know.
MuthuMari MRank #5,738 · 288 reputationPosted Apr 27, 2012, 12:14 AM EDT
SELECT (FirstName + ' , ' + LastName ' , ' + country) "Employee First & Last Name" FROM Employees
ORDER BY FirstName ASC
Pls refer this for more samples,
http://www.mysqltutorial.org/mysql-join-subqueries.aspx
Thanks.
anand sengar29 reputationPosted Apr 27, 2012, 4:53 AM EDT
SELECT isnull(FirstName,'')+' '+isnull(LastName,'')+' '+isnull(MiddleName,'') AS FullName FROM table_name