• ola_blixten (6/17/2008)


    Hey!

    My case:

    I want to generate 5 digit random numbers which should start with:

    00001

    00002

    00003.....

    and 2 digit for week so from 1-52

    and 1 digit for year, from 0-9

    And everyting should be in the same row

    help me..:)

    No problem... but these aren't "random numbers" and we don't actually know where you want things... what should the entire 8 digit format look like?

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