• Naina_11 (7/17/2015)


    Gosh... I am sorry i am not ignoring... i trying to find some simpler way if any else i have your suggestion in store. Looking for something easier as i have to check this for different tables and columns in a procedure.

    Sorry if it was offending 🙂

    Shifting gears a bit, "mixed" columns such as the one you have are always a pain and hardly ever allow for indexes to be used when using search criteria for numerics. Keeping in mind that there will be the occasional exception (EAVs to store column level changes, for example), my recommendation would be to bring such columns to the attention of whomever it is you work for and suggest that some normalization would be the way to go.

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