• jds-685721 (2/3/2014)


    Thaks all for the help.

    It's works great! Now can I ask more?

    Sorry for not adding them all in once - just try to make it simple for myself 🙂

    Col1, Col2, Col3 Col4, Col5

    1 2 Val_A, Val_B, Val_C

    1 2 Val_D Val_B, Val_E

    1 2 …..

    2 2 …

    2 2 …

    Now I want to modify the Col2 base on the Col4’s value(Bal_B)

    So it would be like this:

    1 2 Val_A, Val_B, Val_C

    1 2 Val_D Val_B, Val_E

    1 2 …..

    2 2 …

    2 2 …

    3,Val_B,Val_A,Val_B,Val_C

    3,Val_B,Val_D Val_B,Val_E

    Think about the question you are asking and the general tsql constructs. Try to write that out in as close to valid tsql as you can get and post it if it isn't working.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events