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

Field has two values- want to display both in SQL

From: Prince Of Thieves <thief_NOSPAM_at_hotmail.com>
Date: Thu, 6 Nov 2003 17:02:55 +1100
Message-ID: <Lplqb.205$373.3901@nnrp1.ozemail.com.au>


My SQL is:

select s.stylecode "Style", s.styleidx, p2.price "Price RRP", p2.spidx from sprice_style p1, sprice_clrsku p2, style s, refcode divn where p1.styleidx=s.styleidx
and (p2.spidx = 70 or p2.spidx=2588)
and divn.name='Ck Underwear';

P2.SpIdx can be both of two values. I want to change the SQL above so that it shows something like:

select s.stylecode "Style", s.styleidx, p2.price_if_=70 "Price RRP", p2.price_if_=2588 "Price WHL", p2.spidx
from sprice_style p1, sprice_clrsku p2, style s, refcode divn where p1.styleidx=s.styleidx
and (p2.spidx = 70 or p2.spidx=2588)
and divn.name='Ck Underwear';

Is this possible?

--

Julian Milano
Received on Thu Nov 06 2003 - 00:02:55 CST

Original text of this message

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