Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> scriprt error
Hi,
I run this report daily that includes the following script to perform some calculations.
select count(distinct ev_id) eventtotal
from invopt_acty,inv_pull,std_invopt
where invopt_acty.ivpl_id = inv_pull.id
and inv_pull.sdio_id=std_invopt.id and inv_pull.effdate =
and work_glrp.sdio_id = std_invopt.id and work_glrp.ev_id = event.id and (gain_loss_rsn_code not in ('NR','NC','NT') or gain_loss_rsn_code is null)
select 'EVENTS PULLED LATE VS TOTAL EVENTS' c,
&eventlate num,&eventtotal den,((&eventlate/&eventtotal)*100) rate from dual
The problem I have is when the variable comes out to zero (which happens infrequently) it kills the last part of the script with this error:
num,-2173941.5 den,((/-2173941.5)*100) rate
*
I can't seem to get around it. Any suggestions would be greatly appreciated.
Shawn Received on Sun Nov 23 2003 - 11:55:20 CST