SQL Execution Order
- FROM
- WHERE
- GROUP BY
- HAVING
- SELECT
- ORDER BY
This is the execution order, so if we do SELECT column_id alias , alias only available in ORDER BY.
This is the execution order, so if we do SELECT column_id alias , alias only available in ORDER BY.