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

Home -> Community -> Usenet -> c.d.o.server -> Re: Help with DECODE

Re: Help with DECODE

From: Your Name Here <yourname_at_monsanto.com>
Date: 6 May 1998 22:43:25 GMT
Message-ID: <01bd7940$60168b80$1df390a4@SSVISW.MONSANTO.COM>


The following SQL statement would work :

SELECT id, type, decode(5.5, least(magnitude, 5.5), 'very faint', 'faint') FROM astro;

(You can use either GREATEST or LEAST function in your query,   depending on the requirement)

Good luck!
- Srini Viswanathan Received on Wed May 06 1998 - 17:43:25 CDT

Original text of this message

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