I have a temp table in which have one column with four rows.
Table
------
vaibhav
IBM
12
'T'
I need a temp table
Col1 Col2 Col3 Col4
------ ----- ----- ------
Vaibhav IBM 12 'T'
Does anyone have any idea?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe you are looking for the Pivot clause, straight from msdn …
see msdn article for more.