Order of operation¶
- Sub-queries
- Joins (including join conditions in the WHERE clause)
- PIVOT and UNPIVOT
- START WITH and CONNECT BY clauses
- WHERE clause
- GROUP BY clause and aggregate functions
- HAVING clause
- Analytic functions (such as RANK)
- ORDER BY clause
https://forums.oracle.com/ords/apexds/post/what-is-the-order-of-operations-3634
Order of logical operation¶
- Not
- And
- Or