ADDING NEW RESULTSETS...Possible or impossible?

  • Hi folks,

    I have a database table named tblStoreCheck. If I run "select * from tblstoreCheck" then certainly I got the result below:

     

    I would like to create a new resultset from this sql command that includes:

    - Questions (As rows)

    - StoreIDs (As columns)

    And results as results...

    Is this possible?

     

     

  • your result set is a broken image, paste the text so we can see it.


  • I think this is not important.The major point is

    How can I get

    "results" columns as data cells

    "StoreID" columns as Columns

    "Question" columns as Rows

     

    Is this a multidimensional query? I really dont know this..

     

  • This seems a cubic structure.Right?

  • My current guess is that you want a pivot table but without knowing the table stucture I have no clue what Questions is or what Results is.  the query output or table stucture is required to help you


  • Actually both are required in addition of the sample data and required output from that data.

  • Hey Remi!  My car won't start... can you tell me what's wrong with it?...

       Waddaya mean you want to pop the hood?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Simple problem Jeff.  Nobody is in your car and no one is using the remote starter so it will remain off untill any of those conditions change .

  • Will a cursor fix it?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • I'm sure it could .

Viewing 10 posts - 1 through 9 (of 9 total)

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