Results 1 to 2 of 2

Thread: Rotate view

  1. #1
    Join Date
    Aug 2011
    Posts
    12

    Unanswered: Rotate view

    Hi everybody

    I have a view with 2 columns and 2 rows(No 1). I want to show the result with 3 columns in 1 row(No 2). Please help me..

    No1:
    The view result :
    ID | SubjectID
    -- ---------
    13279 | 900
    13279 | 910


    No2:
    I want to show that result in this structure :

    ID | SubjectID | SubjectID2
    -- --------- ----------
    13279 | 900 | 910


    Thanks.

  2. #2
    Join Date
    Nov 2004
    Posts
    1,427
    Provided Answers: 4
    With kind regards . . . . . SQL Server 2000/2005/2012
    Wim

    Grabel's Law: 2 is not equal to 3 -- not even for very large values of 2.
    Pat Phelan's Law: 2 very definitely CAN equal 3 -- in at least two programming languages

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •