Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re:Optimizing the query to increase performance??
Raghu,
I assuming your running with rule based optimization, therefore I'll ask why your using the driving table in an outer join? Especially when you can't handle a missing record therein (CF.EFF_START_DATE and CF.EFF_STOP_DATE). Outer joins almost always require a full table scan.
Dick Goulet
____________________Reply Separator____________________ Author: "Raghu Kota" <raghukota_at_hotmail.com> Date: 9/26/2001 11:05 AM
Hi Friends,
I had a query running longer time!!, what is best way to optimize this query?? Or can I break this query for 5000 records each..Any ideas and suggestions??
SELECT DISTINCT CC.CUST_NO, CF.DISBURSE_CUST_NO FROM CUSTOMER_CODE CC,
CUSTOMER_FINANCE CF WHERE CC.CUST_NO = CF.BILL_CUST_NO(+) AND CC.CUST_NO
BETWEEN 10000 AND 999999 AND (CF.EFF_START_DATE <= '16-SEP-2001' AND
CF.EFF_STOP_DATE >= '16-SEP-2001')
Thanks
Raghu.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Raghu Kota
INET: raghukota_at_hotmail.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).
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 Sep 26 2001 - 13:24:53 CDT
![]() |
![]() |