Re: trivial decode NOT

From: Keith70127 <keith70127_at_aol.com>
Date: 1995/04/20
Message-ID: <3n4tu6$8c8_at_newsbf02.news.aol.com>#1/1


Saw your use of subtraction and division and trunc to determine range using decode. Seems simplier to me to use the sign function on a subtration.

decode(sign(dept - 150, -1   -- then must be less than 150
decode(sign(dept - 150, 0    -- then must be equal to 150
decode(sign(dept - 150, 1    -- then must be geater than 150

Keith70127_at_aol.com
D. Keith Midkiff Received on Thu Apr 20 1995 - 00:00:00 CEST

Original text of this message