Re: HELP! Oracle Error

From: Joe Nardone <joe_at_access5.digex.net>
Date: 1995/09/29
Message-ID: <44gt2n$h3q_at_news4.digex.net>#1/1


Jee Myeong Ku (jku) wrote:
: I get an oracle divide by zero error when I type the following SQL command:
:
: select * from sales where cost / quantity > 0.5
:
: The reason is that there is at least one row in the sales table where
: the value of the field quantity is 0.
:
: Does anyone know a way to get around this problem without using views
: or nested queries?

select * from sales where cost /quantity > 0.5 and quantity <> 0

Joe

:
: Jee Ku
:
 

-- 
                                   
=------------------------------------------------------------------------=
Joe Nardone               |    
joe_at_access.digex.net      |
Received on Fri Sep 29 1995 - 00:00:00 CET

Original text of this message