Saturday, October 30, 2021

ORA-01476: divisor is equal to zero

select 
 
'&field1' field1,
'&field2' field2,
case 
    when '&field1' = 0 then 0
    when '&field1' != 0 then (('&field1'/'&field2')*100) 
end zero1_,
decode('&field2',0,0,(('&field1'/'&field2')*100)) zero2_,
decode('&field2',0,null,(('&field1'/'&field2')*100)) zero3_ 

from dual 

No comments:

Post a Comment

How to install and configure Oracle Apex 24.1 with ORDS 22, Tomcat 9 and Jasper Report 7 on Oracle Linux 8.10

#########################Install Oracle  APEX 24.1################################ ----------------------------------------------------...