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: Corrected SQL Question...

RE: Corrected SQL Question...

From: Stephen Lee <Stephen.Lee_at_DTAG.Com>
Date: Thu, 13 Mar 2003 10:54:05 -0800
Message-ID: <F001.0056964D.20030313105405@fatcity.com>

Do mean something like this? It would be interesting to see if this could be done with some kind of tree walk.   

1* select a.c1, a.c2, b.c1, b.c2 from crap a, crap b where a.c2 = b.c1 and b.c2 = a.c1
SQL> / C1 C2 C1 C2
----- ----- ----- -----
DAL AUS AUS DAL
HOU AUS AUS HOU
AUS DAL DAL AUS
HOU DAL DAL HOU
LIT DAL DAL LIT
XYZ DAL DAL XYZ
AUS HOU HOU AUS
DAL HOU HOU DAL
LIT HOU HOU LIT
XYZ HOU HOU XYZ
DAL LIT LIT DAL
HOU LIT LIT HOU
DAL XYZ XYZ DAL
HOU XYZ XYZ HOU 14 rows selected.
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Stephen Lee
  INET: Stephen.Lee_at_DTAG.Com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Thu Mar 13 2003 - 12:54:05 CST

Original text of this message

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