I don't use Oracle, but could you do something like[code]
TRUNC( 100 + TRUNC(sysdate,'Q'), 'Q') - 1
That is: Get the first date of the current quarter.
Add 100 days to that (no quarter is longer than 100 days) to get *ANY* date in the next quarter.
Get the first date of the next quarter.
Subtract one day from that to get the last day of the current quarter.
You may have to use functions to add and subtract days in Oracle, but the concept should work.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.