Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to get data comma separated in table row for one singe staff?
i.e if there is one staaf suppose staffid=11 and he speaks five language having different id of that language but if i want to show it in one column itself like hindi,english,spanish like this...

staffid languageid
11 145,134,1569,.. like this in tabble itself.
Posted
Updated 31-May-11 4:48am
v2

1 solution

Try:
SELECT staffid, STR(hindi) + "," + STR(english) AS languages FROM myTable
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900