What exactly are you looking for?
There are already quarter_of_year and quarter_of_calendar columns in sys_calendar.
And a calculation of start and edn of quarter as date would be somehing like
start: ADD_MONTHS(d - (EXTRACT(DAY FROM d)-1), -((EXTRACT(MONTH FROM d) + 2) MOD 3))
end: ADD_MONTHS(d - (EXTRACT(DAY FROM d)-1), -((EXTRACT(MONTH FROM d) + 2) MOD 3)+3) - 1
Dieter
What exactly are you looking for?
There are already quarter_of_year and quarter_of_calendar columns in sys_calendar.
And a calculation of start and edn of quarter as date would be somehing like
start: ADD_MONTHS(d - (EXTRACT(DAY FROM d)-1), -((EXTRACT(MONTH FROM d) + 2) MOD 3))
end: ADD_MONTHS(d - (EXTRACT(DAY FROM d)-1), -((EXTRACT(MONTH FROM d) + 2) MOD 3)+3) - 1
Dieter