Hi Kevin

Thanks for quick reply..Its normally taking 2-4min to show whole data, my cc 
has 18179 rows, and cf has 51513 rows..Here is explain

18179 rows selected.


Execution Plan
----------------------------------------------------------
   0      SELECT STATEMENT Optimizer=CHOOSE (Cost=1866 Card=46885 Byte
          s=3188180)

   1    0   SORT (UNIQUE) (Cost=1866 Card=46885 Bytes=3188180)
   2    1     NESTED LOOPS (Cost=36 Card=46885 Bytes=3188180)
   3    2       TABLE ACCESS (FULL) OF 'CUSTOMER_FINANCE' (Cost=36 Car
          d=50409 Bytes=2217996)

   4    2       INDEX (UNIQUE SCAN) OF 'PK_CUSTOMER_CODE' (UNIQUE)



>From: [EMAIL PROTECTED] (kevin edwards)
>To: [EMAIL PROTECTED] ("Raghu Kota"),        [EMAIL PROTECTED] 
>("LazyDBA.com Discussion")
>Subject: RE: Optimizing the query to increase performance??
>Date: Wed, 26 Sep 2001 14:21:40 -0400
>
>withoust seeing an explain plan this is just a guess
>
>SELECT 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.BILL_CUST_NO BETWEEN 10000 AND 999999
>AND (CF.EFF_START_DATE <= to_date('16-SEP-2001 00:00:00','dd-mon-yyyy 
>hh24:mi:ss') AND
>CF.EFF_STOP_DATE >= to_date('16-SEP-2001 23:50:00','dd-mon-yyyy 
>hh24:mi:ss') )
>group by CC.CUST_NO, CF.DISBURSE_CUST_NO
>"Raghu Kota" <[EMAIL PROTECTED]> wrote:
>
> >
> >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.
> >
> >
> >_________________________________________________________________
> >Get your FREE download of MSN Explorer at 
>http://explorer.msn.com/intl.asp
> >
> >
> >--------
> >Oracle documentation is here: 
>http://tahiti.oracle.com/pls/tahiti/tahiti.homepage
> >To unsubscribe: send a blank email to [EMAIL PROTECTED]
> >To subscribe:   send a blank email to [EMAIL PROTECTED]
> >Visit the list archive: http://www.LAZYDBA.com/odbareadmail.pl
> >Tell yer mates about http://www.farAwayJobs.com
> >By using this list you agree to these 
>terms:http://www.lazydba.com/legal.html
> >
> >
>--
>Sr. DBA
>
>
>
>__________________________________________________________________
>Your favorite stores, helpful shopping tools and great gift ideas. 
>Experience the convenience of buying online with Shop@Netscape! 
>http://shopnow.netscape.com/
>
>Get your own FREE, personal Netscape Mail account today at 
>http://webmail.netscape.com/
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Raghu Kota
  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