We help IT Professionals succeed at work.
Get Started

How convert each row of table to as columns in sql server

codeoxygen
codeoxygen asked
on
79 Views
Last Modified: 2016-01-07
hi,
      I want convert entire row in table as single column , example is show below

QuteNo     || requestNo  ||      cat1    || cat2    || cat3
------------------------------------------------------------------------------------
01                            1                        a               b               c
2                               1                        d               e               f
3                                2                       g                  k              l

Expected Result :

 heading          01    2    3
requestno        1      1    2
  cat1                 a       d     g
  cat2                 b       e    k
    cat3               c         f    i
Comment
Watch Question
IT Engineer
CERTIFIED EXPERT
Distinguished Expert 2017
Commented:
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE