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: SQL Tunning

RE: SQL Tunning

From: Raj Jamadagni <rjamya_at_yahoo.com>
Date: Tue, 3 Aug 2004 09:29:24 -0700 (PDT)
Message-ID: <20040803162925.81071.qmail@web50006.mail.yahoo.com>


what about

select *
  from my_40_million_row_table
 where last_update_date between trunc(sysdate) and (trunc(sysdate)+(86399/86400)) /

??
Raj
> -----Original Message-----
> From: oracle-l-bounce_at_freelists.org
> [mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Wes Brooks
> Sent: Monday, August 02, 2004 6:13 AM
> To: Oracle-L_at_freelists.org
> Subject: SQL Tunning
>
>
> Hello expert,
>
> I have a table with 40 millions records and the last update date is indexed.
> But when we use the
> following where clause, it takes forever to run the report.
>
> WHERE TRUNC(last_update_date) = TRUNC(SYSDATE - 1)
>
> How to improve the performance? Do I need to create a new index field on
> the table with TRUNC(last_update_date)?



Best Regards
Raj

select mandatory_disclaimer from company_requirements;

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

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

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Tue Aug 03 2004 - 11:25:33 CDT

Original text of this message

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