--
select to_char(a.effective_date, 'DD'), sum(a.entered_cr)
from gl_je_lines a
group by to_char(a.effective_date, 'DD');
--
select to_char(a.effective_date, 'MM'), sum(a.entered_cr)
from gl_je_lines a
group by to_char(a.effective_date, 'MM');
--

select to_char(a.effective_date, 'YYYY'), sum(a.entered_cr)
from gl_je_lines a
group by to_char(a.effective_date, 'YYYY');

--

select to_char(a.effective_date, 'iw'), sum(a.entered_cr)
from gl_je_lines a
group by to_char(a.effective_date, 'iw');
--季度
select to_char(a.effective_date, 'q'), sum(a.entered_cr)
from gl_je_lines a
group by to_char(a.effective_date, 'q');

 

posted on 2012-03-05 17:08  小波Ooo  阅读(2359)  评论(0编辑  收藏  举报