I have a large query which I am trying top optimize. One of the condition which I would like to change is as shown below. i.e I am trying to remove scalar functions.
Current:
DATE( ACTIVITY.CREATED) ='2009-02-18'
to
ACTIVITY.CREATED BETWEEN '2009-02-18 00:00:00' AND '2009-02-18 24:00:00'
After checking the Explain plan I could not see much improvement. In fact Estimated Cost to 4532.601074 from 4532.380859
Any advise will be helpful.