• Shifting gears, is To.FinncPriod supposed to skip a couple of beats like this in your CASE statement???

    WHEN T0.FinncPriod = '46' THEN '2013-Oct'

    WHEN T0.FinncPriod = '45' THEN '2013-Sep'

    WHEN T0.FinncPriod = '[font="Arial Black"]44[/font]' THEN '2013-Jun'

    WHEN T0.FinncPriod = '[font="Arial Black"]41[/font]' THEN '2013-May'

    WHEN T0.FinncPriod = '40' THEN '2013-Apr'

    WHEN T0.FinncPriod = '39' THEN '2013-Mar'

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