Trunc date oracle, Tuning SQL

Asked

Viewed 152 times

0

Is there any way to optimize query sql, where it is necessary to truncate two dates of a column?

Select *
from work_table a
where trunc(a.datetime) = trunc(a.datetime);
  • I did not understand your question. The WHERE clause above will not always be true?

  • It doesn’t make sense this query, can explain your problem better?

  • It would be a performance problem in the case , when using truncate two dates in the Where condition, in the case the above example is just a personification of the situation. -- > WHERE TRUNC(DATATIME) = TRUNC(DATATIME)

  • Analyze the execution plan and whether using a Function based index helps improve performance.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.