I Have a requirement in which i have to split the given dates into quarters. it should start from the first_date continuing to last day of quarterly month and end at last_date.
WITH T AS(
SELECT TO_DATE('02/03/2012','DD/MM/YYYY') FIRST_DATE,TO_DATE('26/05/2013','DD/MM/YYYY') LAST_DATE FROM DUAL)
SELECT * FROM T
The quarterly split result that i want should look like this -
FIRST_DATE LAST_DATE
02/03/2012 30/06/2012
01/07/2012 31/10/2012
01/11/2012 28/02/2014
01/03/2014 26/05/2013
Thanks,