• sqlmunkee (4/24/2012)


    So, the key bit here is that SQL will *decide* whether the sequence is ascending or descending based on the INCREMENT BY argument.

    That only seems logical to me.

    If the INCREMENT BY is negative, the sequence will automatically be a descending one, as you will always "take a step back".

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP