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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Decode

Re: Decode

From: Rachel Carmichael <wisernet100_at_yahoo.com>
Date: Wed, 11 Sep 2002 11:34:51 -0700 (PDT)
Message-Id: <22541.293598@fatcity.com>


decode (column_name, value, replacement, value, replacement,.... default)

where value is the column value
replacement is value you want to replace the column value with default is the value to use if you get a column value not in your list

decode (operating_system, 'PC','Windows','SUN','UNIX','LINUX')

so if the operating_system column has the value PC, you want to have Windows as the value you actually get,if it has SUN you get UNIX, if it has anything else you will see LINUX


Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost Received on Wed Sep 11 2002 - 13:34:51 CDT

Original text of this message

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