MS SQL Server objects logical execution order.
Nagi Setty A
FROM,ON,JOIN,WHERE , DIstinct, SELECt ORDERBY
FROM ON JOIN WHERE GROUP BY WITH CUBE or WITH ROLLUP HAVING SELECT DISTINCT ORDER BY TOP
1. FROM 2. ON 3. OUTER 4. WHERE 5. GROUP BY 6. CUBE | ROLLUP 7. HAVING 8. SELECT 9. DISTINCT 10 ORDER BY 11. TOPReference from blog.sqlauthority.com