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: Field has two values- want to display both in SQL

Re: Field has two values- want to display both in SQL

From: osy45 <member18536_at_dbforums.com>
Date: Thu, 06 Nov 2003 03:48:35 -0500
Message-ID: <3566415.1068108515@dbforums.com>

use decode or the case contruct to display the different values ...

select case when p2.price_if_ = 70 then "Price RRP"

                 when p2.price_if_ = 2588 "Price WHL"

else 0

end price

from <table > where ...

--
Posted via http://dbforums.com
Received on Thu Nov 06 2003 - 02:48:35 CST

Original text of this message

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