I have a set of conditions in my where clause like
WHERE d.attribute3 = 'abcd*' AND x.STATUS != 'P' AND x.STATUS != 'J' AND x.STATUS != 'X' AND x.STATUS != 'S' AND x.STATUS != 'D' AND CURRENT_TIMESTAMP - 1 < x.CREATION_TIMESTAMP
Which of these conditions will be executed first? I am using oracle.
Will I get these details in my execution plan? (I do not have the authority to do that in the db here, else I would have tried)
Are you sure you ‘don’t have the authority’ to see an execution plan? What about using AUTOTRACE?
As you can see, that gives quite a lot of detail about how the query will be executed. It tells me that:
This order of application has nothing to do with the way the predicates are ordered in the WHERE clause, as we can show with this re-ordered query: