Inserting an incremental range of decimal numbers into a table

  • Jeff Moden

    SSC Guru

    Points: 996622

    My example was one of many.  My point is instead of using exact points to try to hit an inclusive BETWEEN, use ranges that have an exact start and a "NEXT START" for a range and use a where clause that says SomeSearchValue >= StartValue and SomeSearchValue < NextStartValue.


    --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".
    "If "pre-optimization" is the root of all evil, then what does the resulting no optimization lead to?"

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing post 16 (of 16 total)

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