• sqldriver (1/30/2014)


    Hi,

    A while back I recall reading a post on here where a user needed to update a column with values until there was a new value, then update with that new value until it hit the next new value, and so on.

    There were some really excellent solutions, and now that I'm facing a similar problem, I'd really like to review them. But of course I can't find it.

    I know it's sort of a gaps and islands problem generally.

    Thanks

    Was this it?

    http://www.sqlservercentral.com/Forums/Topic1529984-8-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)