by 헐레벌떡 [SQL Query] 정렬 SUM [2013.04.08 01:32:12]
SELECT indate , point , SUM(point) OVER(ORDER BY indate) sum_point FROM point ORDER BY indate DESC ;
-- 요런 방법도 -- SELECT indate , point , SUM(point) OVER(ORDER BY indate DESC ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) sum_point FROM point ;