Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Divisor is equal to zero

Re: Divisor is equal to zero

From: roman <roman.klesel_at_googlemail.com>
Date: 21 Sep 2006 00:44:16 -0700
Message-ID: <1158824656.433143.72190@k70g2000cwa.googlegroups.com>


Hello,

muddu wrote:
> ERROR at line 3:
> ORA-01476: divisor is equal to zero
>
> line 3: round(100 * (us.usedspace / df.totalspace)) per.

just in case you didn't find out yet:

You can catch 0 values with decode(). This can be used similar to "if ... then ..." constructs in procedural language. Not very elegant but works.

There was a discussion on decode some threads earlier.

Greetings Roman Received on Thu Sep 21 2006 - 02:44:16 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US