SQL execution order doesn't start with SELECT
Share this page | Read it later using CloudBreak Wallabag
In a non-image format, the order is:
FROM/JOINand all theONconditionsWHEREGROUP BYHAVINGSELECT(including window functions)ORDER BYLIMIT
Source: SQL queries don’t start with SELECT
Handy to have in mind when thinking about performance.