Can cross tab query used with non aggregatable data column?

  • HI There,

    I have 2 tables tab1 and tab2. Below are the signature of the two tables.

    Tab1

    ( name,Description,category)

    Tab 2

    (Group,Description,f1,f2...fn) --- f(n) - fields of bit type and appears as "name" on the Tab1.

    for e.g

    tabl

    (canedit,editenquiry,security)

    (candelete,deleteenquiry,security)

    tab2

    (g1,g1group,canedit,candelete)

    Kindly go through the Tab 2 structure and consider your suggestion for below...

    How can I return a temporary table with extra column active added to tab1 by checking the value set on the fields (f1...fn) on tab2.

    Any suggestion will be helpful.

    Cheers,

    Vidhya Rao

  • Cross post... please don't answer on this thread... go to the following instead...

    http://www.sqlservercentral.com/Forums/Topic580370-1291-1.aspx

    --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)

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

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