SQL Tunning

  • From: Wes Brooks <wes_brooks@xxxxxxxxx>
  • To: Oracle-L@xxxxxxxxxxxxx
  • Date: Mon, 2 Aug 2004 03:13:11 -0700 (PDT)

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)?
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: