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: SQL -Can this be done in a single query

Re: SQL -Can this be done in a single query

From: S B <bhulubhuli_at_yahoo.com>
Date: Wed, 08 May 2002 23:03:18 -0800
Message-ID: <F001.0045C5F2.20020508230318@fatcity.com>


Sam,

Are you looking for this ? Why the third col in your table ( t2 ) will be null
for 102 ? Is that not sourced from t2 ?

SQL> select t1.c2,t1.c4,t23.c2,t23.c3,t4.c4   2 from t1,t4,(select t2.c2 c2 ,t2.c3 c3 from

t2,t3 where t2.c3=t3.c3) t23
  3  where  t1.c4=t4.c4(+)
  4  and    t1.c2=t23.c2(+);

       C2        C4        C2        C3        C4
--------- --------- --------- --------- ---------
      100       990       100       400       990
      101       991       101       401       991
      102       992                           992
      103       993       103       403       993
      104       994       104       404

Regrads
Bhulu


Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: S B
  INET: bhulubhuli_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 Thu May 09 2002 - 02:03:18 CDT

Original text of this message

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