Re: IF-like function in Oracle?
From: Mani Maran <mmaran01_at_csd.eds.com>
Date: 1995/10/02
Message-ID: <44pkmq$195_at_maverick.tad.eds.com>#1/1
Date: 1995/10/02
Message-ID: <44pkmq$195_at_maverick.tad.eds.com>#1/1
Here is the trick ,
IF X > Y
THEN return value A as the column's value
ELSE return value B as the column's value
decode(sign(X-Y),1,A,-1,B,0,B)
Good Luck
--- Mani Maran EDS Consultant Voice: 214-828-.7572... Fax: 841-6886 999 Haskel Commercial Services Division, Southland Account Dallas, Texas 75... USA "Opinions expressed herein are not necessarily supported by my employer."Received on Mon Oct 02 1995 - 00:00:00 CET