The Order of SQL Query Execution
FROM and JOINs
WHERE
GROUP BY
HAVING
SELECT
DISTINCT
ORDER BY
LIMIT/OFFSET
Reference:
[1]. Mayank Ahuja (May 22, 2024) The actual Order of Execution [link ]