Message-Id: <22541.293611@fatcity.com> From: Rodd Holman Date: 11 Sep 2002 13:54:18 -0500 Subject: RE: Decode --=-eNF2Ks91nziwG8MFruVo Content-Type: text/plain Content-Transfer-Encoding: 7bit Here you go, Ruth, select decode(field,'data value1','output1','data value2','output2',...'output if none others') MEANINGFUL_ALIAS from yadayada Rodd On Wed, 2002-09-11 at 14:28, Carle, William T (Bill), ALCAS wrote: Ruth, You can pull manuals off the web at this URL: http://download-east.oracle.com/otndoc/oracle9i/901_doc/nav/docindex.htm This is for 9i. If you have 8i, they have that too. Bill Carle AT&T Database Administrator 816-995-3922 wcarle@att.com -----Original Message----- Sent: Wednesday, September 11, 2002 1:59 PM To: Multiple recipients of list ORACLE-L Subject: Decode Hello everyone, I am having a senior moment and I have forgetten the syntax for 'decode'. Can anyone give me a hint. I have leant out my sql books and of course I need them now. Thanks in advance, Ruth Gramolini Oracle DBA, Vermont Department of Taxes -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Ruth Gramolini INET: rgramolini@tax.state.vt.us Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Carle, William T (Bill), ALCAS INET: wcarle@att.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). --=-eNF2Ks91nziwG8MFruVo Content-Type: text/html; charset=utf-8 Here you go, Ruth,

select decode(field,'data value1','output1','data value2','output2',...'output if none others')  MEANINGFUL_ALIAS
from   yadayada

Rodd

On Wed, 2002-09-11 at 14:28, Carle, William T (Bill), ALCAS wrote:
Ruth,

    You can pull manuals off the web at this URL:

http://download-east.oracle.com/otndoc/oracle9i/901_doc/nav/docindex.htm

    This is for 9i. If you have 8i, they have that too.


Bill Carle
AT&T
Database Administrator
816-995-3922
wcarle@att.com

 -----Original Message-----
Sent:	Wednesday, September 11, 2002 1:59 PM
To:	Multiple recipients of list ORACLE-L
Subject:	Decode

Hello everyone,

I am having a senior moment and I have forgetten the syntax for 'decode'.
Can anyone give me a hint.  I have leant out my sql books and of course I
need them now.

Thanks in advance,
Ruth Gramolini
Oracle DBA, Vermont Department of Taxes

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Ruth Gramolini
  INET: rgramolini@tax.state.vt.us

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Carle, William T (Bill), ALCAS
  INET: wcarle@att.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).