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: type of join in sql

Re: type of join in sql

From: <Jared.Still_at_radisys.com>
Date: Wed, 24 Jul 2002 14:07:56 -0800
Message-ID: <F001.004A1AA1.20020724140756@fatcity.com>


Here's how I determine that:

http://www.amazon.com/exec/obidos/ASIN/0130123811 http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96533/toc.htm

Sorry for the RTFM, but what you're asking is a rather large topic, one which I can't attempt to answer, at least, not while at work.

Jared

"BigP" <big_planet_2000_at_hotmail.com>
Sent by: root_at_fatcity.com
07/23/2002 06:58 PM
Please respond to ORACLE-L  

        To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
        cc: 
        Subject:        type of join in sql


can some body shed some light on how does the optimizer decides to choose the kind of join i.e. nested loop, sort merge or hash join . In one of queries if i tweak the join condition it changes the type of join and start using index , otherwise it doesn't . I thought it depends on statistics .. if optimize finds that are more qualifying records in inner table then it will prefer to go for sort merge and will do full scan of inner table , but if it thinks there are less records in inner table it will user nested loop . am I correct ?  

TIA ,
bp  

--

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

Author:
  INET: Jared.Still_at_radisys.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 Wed Jul 24 2002 - 17:07:56 CDT

Original text of this message

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