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: Query

Re: Query

From: ASHRAF SALAYMEH <ashraf_salaymeh_at_yahoo.com>
Date: Sun, 30 Sep 2001 08:18:38 -0700
Message-ID: <F001.0039CD5A.20010930082016@fatcity.com>

Try this select statement:

select ID, P1||' '||PVAL1
FROM t
WHERE ID = 101
UNION
select ID, P2||' '||PVAL2
FROM t
WHERE ID = 101
UNION
select ID, P3||' '||PVAL3
FROM t
WHERE ID = 101
select ID, P1||' '||PVAL1
FROM t
WHERE ID = 102
UNION
select ID, P3||' '||PVAL3
FROM t
WHERE ID = 102
UNION
select ID, P2||' '||PVAL2
FROM t
WHERE ID = 102
UNION
select ID, P1||' '||PVAL1
FROM t
WHERE ID = 103
UNION
select ID, P3||' '||PVAL3
FROM t
WHERE ID = 103
UNION
select ID, P2||' '||PVAL2
FROM t
WHERE ID = 103


Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: ASHRAF SALAYMEH
  INET: ashraf_salaymeh_at_yahoo.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_at_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).
Received on Sun Sep 30 2001 - 10:18:38 CDT

Original text of this message

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