Hi,
I want to show column value in single row. Is it possible? If it is,then how will I do it.
Thanks, in advance
How can I show column value in a row
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pravin MoreRank #1,419 · 1.2K reputationPosted Sep 21, 2011, 8:31 PM EDT
Yes it is possible to show column as Row....You can Use PIVOT for it.
here is demo..................
http://www.simple-talk.com/community/blogs/andras/archive/2007/09/14/37265.aspx
hope u solve it.
Thanx,
Pravin.
Lalit MRank #1,186 · 1.5K reputationPosted Sep 21, 2011, 8:32 PM EDT
select * from dbo.Split('vitA, vitB, vitA, protein, vitB,vitA',',')