Order Of Execution of the SQL query

Queries are generally processed in the follow order (SQL Server). I have no idea if other RDBMS’s do it this way.

FROM [MyTable]
    ON [MyCondition]
  JOIN [MyJoinedTable]
 WHERE [...]
 GROUP BY [...]
HAVING [...]
SELECT [...]
 ORDER BY [...]

Leave a Comment