Following is my query for monthly data.
select
NVL(MONTH, 'SUM) MONTH
, sum(A) AS A, sum(B) AS B
from
(
select b.*
from TABLE b
where b.MONTH between '201305' and '201306'
)
group by ROLLUP(MONTH)
I get data like
| MONTH |
201305
201306
But I want the data to be named as below.
| MONTH |
2013. 05 MONTH
2013. 06 MONTH
Can anyone help?