그룹별 합계, 누적합계 sum()
SELECT code01, code02, name, point, sum(point) over(partition by code01), sum(point) over(partition by code01 order by code01, code02, point), sum(point) over(order by code01, code02, point), sum(point) over() FROM tb_aaa;
2009. 11. 4.
달력 query
select min(decode(mod((b.no + to_char(to_date('20090601','yyyymmdd'),'d') - 1) , 7), 1, b.no)) "일", min(decode(mod((b.no + to_char(to_date('20090601','yyyymmdd'),'d') - 1) , 7), 2, b.no)) "월", min(decode(mod((b.no + to_char(to_date('20090601','yyyymmdd'),'d') - 1) , 7), 3, b.no)) "화", min(decode(mod((b.no + to_char(to_date('20090601','yyyymmdd'),'d') - 1) , 7), 4, b.no)) "수", min(decode(mod((b.n..
2009. 7. 17.