Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: if then else statement on 2 columns in SQL query?

Re: if then else statement on 2 columns in SQL query?

From: Marc Billiet <Marc.Billiet_at_hae.hydro.com>
Date: Tue, 20 Oct 1998 07:25:51 +0100
Message-ID: <362C2CEF.23E2@hae.hydro.com>


SELECT DECODE(..)
FROM xxx
ORDER BY DECODE(y.column,'ORANGES',1,'PEARS',2,'APPLES',3,'GRAPE',4, 'PEACHES',5, 6) knez wrote:
>
> After decoding apples, pears, oranges, peaches, grapes - what can be done to
> get them into a specific order (not alpha). {oranges, pears, apples, grape,
> peaches?}
Received on Tue Oct 20 1998 - 01:25:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US