Retrieve columns names

  • Hello there!

    Question: is there a transact statement for retrieving the data set in opposite order? I mean, we have for example:

    select number, name from tabla1

    ------------------------------

    Number Name

    1         name1

    2         name2

    could we have something as?

    ------------------------------

    Number     1            2

    Name        name1     name2

     

    Probably this sounds nuts but I'm just wondering if it's possible...

    Thanks!


    L.I. Amaury C.R.

  • What you're looking to do is a PIVOT.  If you've got 2005 it's fairly simple.  If not, search this forum and you'll find several examples.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply