How to convert row into column.I have following result set.
UserID VendorName QuestionText AnswerText 1 KK abc1 ans1 1 KK
SELECT UserID, VendorName, [abc1], [abc2], [abc3] FROM Questions PIVOT (MAX(AnswerText) FOR QuestionText IN ([abc1], [abc2], [abc3]) ) AS pvt