Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Financial Month

    Following is simple query for the same.

    [font="Courier New"]DECLARE @Cal_Month AS INT

    SET @Cal_Month = 1

    SELECT @Cal_Month Cal_Month,ISNULL(NULLIF((@Cal_Month+9)%12,0),12) Fin_Month

    SET @Cal_Month = 3

    SELECT @Cal_Month Cal_Month,ISNULL(NULLIF((@Cal_Month+9)%12,0),12) Fin_Month

    SET @Cal_Month = 4

    SELECT @Cal_Month Cal_Month,ISNULL(NULLIF((@Cal_Month+9)%12,0),12) Fin_Month

    SET @Cal_Month...

Viewing post 1 (of 1 total)