If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

I don't use Oracle, but could you do something like[code]
TRUNC( 100 + TRUNC(sysdate,'Q'), 'Q') - 1
[code]
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.