Re: DECODE or else, a little test...

From: Gernot Ficker <Gernot.Ficker_at_ubs.ch>
Date: 1996/11/13
Message-ID: <56cq2j-1gp_at_svusenet.ubs.ch>#1/1


lesliet_at_u.washington.edu (L. Tseng) wrote:
>
>Can DECODE do the following?
>
> IF colA > 100 THEN 'A'
> ELSIF colA = 100 THEN 'B'
> ELSE 'C'
>
Sure :

decode (sign (colA-100),1,'A',0,'B','C')

Gernot Received on Wed Nov 13 1996 - 00:00:00 CET

Original text of this message