• bpsavi123 (5/15/2015)


    Hi,

    i have task where i need to update the 2 columns from 2 different tables.I need to get one column from one table and update to the other table.If the column name do not match....Please help

    Update using a WHERE NOT EXISTS using a correlated sub-query of the two tables.

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