running balance in report 6i/9i

To discuss Oracle Forms & Reports related technical issues.
Post Reply
patelwork
Posts: 18
Joined: Thu Jan 25, 2007 1:55 am
Location: Pakistan

running balance in report 6i/9i

Post by patelwork »

received. total
------------ -- ------------ -
10 10
20 30
30 60

also same with debit-credit

thank you
ahmadbilal
Posts: 615
Joined: Mon Sep 18, 2006 1:32 am
Location: United Arab Emirates
Contact:

Post by ahmadbilal »

SELECT ENAME, DEPTNO, SAL,
SUM (SAL) OVER (ORDER BY DEPTNO, ENAME) "Running Total"
FROM EMP
ORDER BY DEPTNO, ENAME
admin
Posts: 2063
Joined: Fri Mar 31, 2006 12:59 am
Location: Pakistan
Contact:

Post by admin »

Dear patelwork,
Your question is not clear and provide detail. We should avoid incomplete questions. thanks
patelwork
Posts: 18
Joined: Thu Jan 25, 2007 1:55 am
Location: Pakistan

Post by patelwork »

sory for that...

i need running balance in report as like

rec qty total qty
------- ----------
10 10
20 30
30 60

as the right column shows the prvious qty+current qty.
hope it clear now.
waiting ur response
thank you
ahmadbilal
Posts: 615
Joined: Mon Sep 18, 2006 1:32 am
Location: United Arab Emirates
Contact:

Post by ahmadbilal »

there two ways
one i already posted
second by using report summary column
patelwork
Posts: 18
Joined: Thu Jan 25, 2007 1:55 am
Location: Pakistan

Post by patelwork »

can u plz tell me the second way.
imranhad
Posts: 56
Joined: Thu Apr 06, 2006 6:57 am
Location: Pakistan

Post by imranhad »

sory for that...

i need running balance in report as like

rec qty total qty
------- ----------
10 10
20 30
30 60

as the right column shows the prvious qty+current qty.
hope it clear now.
waiting ur response
thank you


<i><div align="right">Originally posted by patelwork - 24/01/2007 : 10:26:36 PM</div id="right"></i>


try this one

select rec,sum(qty)
from table
group by rollup(rec)
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests