Re: DECODE

From: Lun Wing San (Oracle) <"Lun>
Date: 1996/12/05
Message-ID: <32A68472.12B5_at_qrcsun.qrc.org>#1/1


Les Sprott wrote:
>
> I am trying to use the following logic in a DECODE statement:
>
> if the ((abs(x/y))-1) > .02 then 'Y' elses 'N'.

  select decode( sign((abs(x/y))-1)-0.02), 1, 'Y', 'N') from sys.dual;

---
Name   : Lun Wing San
Title  : Oracle Application Developer of Hong Kong Productivity Council
         Oracle Database Administrator and System Administrator of QRC
Phone  : (852)27885841
Received on Thu Dec 05 1996 - 00:00:00 CET

Original text of this message