if properly written the first one would be faster because even if you optimize the second solution, you can NEVER get rid of context switches between SQL and PLSQL code. There will always be overhead in second solution.
Raj ______________________________________________________ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. QOTD: Any clod can have facts, but having an opinion is an art! -----Original Message----- Sent: Wednesday, August 28, 2002 11: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
*********************************************************************2 This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you. *********************************************************************2