Updating table based on coalesce reults in where clause?

  • bobhovious (10/6/2008)


    Somewhat embarassing to get caught in typos that increase volumes :w00t:, or quick reads that miss the point being made. But I'll survive.

    You never answered the question: Do you look at ALL the threads?

    No, but it sure seems like it sometimes.

    Heh... and sorry for the "stray" thought. I wasn't directing my comment about Update Alias be undocumented at anyone in particular and I'm not sure why I even posted that info. Heck, I use it and other undocumented features all the time. Folks that say not to use undocumented features because they might change seem to forget that even the documented features change or are deprecated and then eliminated. For example... the following very useful syntax has been deprecated...

    SELECT @SomeVariable = SomeColumn

    FROM dbo.SomeTable

    WHERE yada-yada

    Why is it useful? Because it's easy to test code for something that looks like this...

    UPDATE SomeTable

    SET @SomeVariable = SomeColumn

    FROM dbo.SomeTable

    WHERE yada-yada

    --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 post 16 (of 15 total)

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