Re: Help with Calculation

From: DA Morgan <damorgan_at_psoug.org>
Date: Mon, 05 Dec 2005 12:55:36 -0800
Message-ID: <1133816117.544808_at_jetspin.drizzle.com>


bobsacomano_at_yahoo.com wrote:
> Ultimately what I want to do is identify all the order numbers as
> greater or less than 1000. I can add that calculation once I figure
> out how to get this order total calculation figured out. Apologies for
> not being more specific.

SELECT SIGN(DECODE(some_value - 999, 1, 1, 0)) FROM dual;

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Mon Dec 05 2005 - 21:55:36 CET

Original text of this message