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: How to eliminate divide by zero error

Re: How to eliminate divide by zero error

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 09 Mar 2007 18:13:23 -0800
Message-ID: <1173492803.211939@bubbleator.drizzle.com>


> Sorry Daniel,
> My attempts to incorporate the COALESCE function failed,
> therefore I omitted that from the code to eliminate confusion. I'm
> using Oracle 9 and I simply want Null to return '0' as a blank record
> in this case essentially means zero.

NVL will do it.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Fri Mar 09 2007 - 20:13:23 CST

Original text of this message

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