View Single Post
  #1 (permalink)  
Old March 14th, 2008, 22:25
prasad prasad is offline
Junior Member
 
Join Date: Mar 2007
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
prasad is on a distinguished road
UTC.GET_LOCAL_DATE SQL Performance

We are using utc.get_local_date function very frequently. Is there a better way to get the local date? This function call is taking a long time execute.

For example.

to_char(ORD.LATE_PICKUP_DATE,'DD-MON-YYYY') = '14-MAR-2008' (ORD is order release)

This condition in the where clause scans through all the rows in the order release ID.
How can I avoid the complete table scan?

Thanks,
Prasad.
__________________
Thanks,
Prasad.
Reply With Quote