Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What is the order of operations

User_5OAFPOct 3 2014 — edited Oct 3 2014

Where can I find the order of operations which are evaluated by Oracle database? I mean, for example, that for a query like this:

select something, rank over ( partition by .. order by ... ) r

from t1, t2

where t1.x = t2.x

     and t2.other_something = 'value'

order by 1;

it can be said that: "order by" goes last, "rank" works on rows after the tables are "joined" and rows "selected". So in a sense there is some order of operations performed. I understand that actual order of operations during execution may be different if optimizer finds out an equivalent, alternative execution plan. But what is a sort of "basic" order op operations Oracle follows "to understand" the query even before it tries to figure out alternative form. Is there such list of operations order?

Thank you

This post has been answered by Frank Kulash on Oct 3 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 31 2014
Added on Oct 3 2014
3 comments
2,320 views