• Irozenberg 1347 (3/1/2013)


    Elementary sub-query or EXISTS clause would

    Radically improve performance.

    If you like fancy coding you could pass XML as

    parameter and use XQUERY.

    Since you made a claim of performance, let's see your "elementary sub-query or EXISTS" clause.

    I do agree that passing (ugh!) XML would also be fast but it has no respect for the "pipe".

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