TECHNICAL TALK
Tuesday, May 24, 2011
GROUP WISE SUM
---group wise sum...
--- SHOWING THE GROUP SUM TO EACH ROWS
--- USE OF PARTITION BY
select ename , deptno, sal,
sum(sal) over (partition by deptno) total_salary
from SCOTT.EMP
order by deptno
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment