当我运行以下查询时,
select
NVL(week, 'SUM) week
, sum(A) AS A, sum(B) AS B
from
(
select b.*
from TABLE b
where b.week between '2013051' and '2013052'
)
group by ROLLUP(WEEK)
我得到像
| WEEK |
2013051
2013052
但我希望数据命名如下。
| WEEK |
2013. 05. 1 WEEK
2013. 05. 2 WEEK
谁能帮我解决这个问题?