how display record no in report [message #198174] |
Mon, 16 October 2006 00:32 |
mfa786
Messages: 210 Registered: February 2006 Location: karachi
|
Senior Member |
|
|
hi master
sir rownum work in query but not work in report
sir how display record no in report
please give me idea
thanks
aamir
|
|
|
|
|
|
Re: how display record no in report [message #198204 is a reply to message #198188] |
Mon, 16 October 2006 03:01 |
mfa786
Messages: 210 Registered: February 2006 Location: karachi
|
Senior Member |
|
|
hi
this is my code
select rownum,mfa.department,nvl(sum(amount),0) from
(SELECT departmentmfa.title AS department,chartofacc.title
,nvl(sum(debit),0)-nvl(sum(credit),0) as AMOUNT FROM voudetail,voumaster,chartofacc,departmentmfa WHERE voumaster.vno=voudetail.vno AND SUBSTR(voudetail.accid,1,2)='K2' AND voudetail.deptid=departmentmfa.deptid(+) AND voudetail.accid=chartofacc.accid and voumaster.entdate between :p_1 and :p_2
group by departmentmfa.title,chartofacc.title order by 1,2) mfa group by mfa.department order by mfa.department
thank
aamir
|
|
|
|
|
Re: how display record no in report [message #198307 is a reply to message #198204] |
Mon, 16 October 2006 09:18 |
yogen
Messages: 39 Registered: October 2006 Location: UK
|
Member |
|
|
how about this query
select rownum,department,sum from (
select mfa.department department,nvl(sum(amount),0) sum from
(SELECT departmentmfa.title AS department,chartofacc.title
,nvl(sum(debit),0)-nvl(sum(credit),0) as AMOUNT FROM voudetail,voumaster,chartofacc,departmentmfa WHERE voumaster.vno=voudetail.vno AND SUBSTR(voudetail.accid,1,2)='K2' AND voudetail.deptid=departmentmfa.deptid(+) AND voudetail.accid=chartofacc.accid and voumaster.entdate between :p_1 and :p_2
group by departmentmfa.title,chartofacc.title order by 1,2) mfa group by mfa.department order by mfa.department )
thank
Yogen
[Updated on: Mon, 16 October 2006 09:20] Report message to a moderator
|
|
|