Numeric/Negative Check

  • Hey.. I didnt read this earlier.... It is working fine.. Giving the desired results 🙂 but seems to be a slow query. (taking 10 sec to process 1 lac records). Else its working fine and would solve the purpose too.

    Thanks a lot

  • There was a confusion earlier. I had not seen this post of yours.

    This gave the desired results. Thanks a lot.

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

Viewing 3 posts - 16 through 17 (of 17 total)

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