I found a way to handle this problem. Hopefully someone else can use this if they run into some old code.
I used cast(extract(month from adate ) +2 )/ 3 as char(1). This will get the month for the quarter that it falls in.
↧