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 -> DECODE

DECODE

From: Sherman H. <shung_at_earthlink.net>
Date: Thu, 01 Apr 2004 22:20:00 GMT
Message-ID: <kA0bc.11648$lt2.2675@newsread1.news.pas.earthlink.net>


I have to run a query to give a column a value based on a time range. Can I use DECODE?

select decode(trans_date, trans_date>='01-Jul-2002' and trans_date<='30-Jun-2003','Fiscal2002', .....) as fiscal, from. . .
where. . . Received on Thu Apr 01 2004 - 16:20:00 CST

Original text of this message

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