Vivek - Offhand I'd say "it depends". If there are 10 rows in each table,
I'd vote for the 6-table join. If there are 10 billion rows in each table
and you only need one row from each, I'd vote for the individual queries.
Another factor would be how option 2 is accessing the database. If it is in
a PL/SQL program, that would favor option 2 more than if it is in a program
executing on the client PC over a slow WAN. These are my thoughts worth
every cent you paid to get them.

Dennis Williams
DBA
Lifetouch, Inc.
[EMAIL PROTECTED]


-----Original Message-----
Sent: Wednesday, August 28, 2002 10:33 AM
To: Multiple recipients of list ORACLE-L



Which would Perform Better ? 
1) Having an SQL Query Doing a Join between 6 Tables 

2) Running 1 SQL Query on a Single Table , getting the Output Values in a
Cursor 
& passing the Cursor Values as Arguments to the where Clause of a 2nd SQL
Query 
Running on a 2nd  Table & thus so on ... thereby finally getting the Output
from the 6th Table







-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: VIVEK_SHARMA
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: DENNIS WILLIAMS
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to