News for hackers. Stuff that matters.
Re:Left to Right Programming by dotancohen on Tuesday August 19, 2025 @09:25AM (#44951251)

  > The order should be FROM -> SELECT -> WHERE, since SELECT commonly gives names to columns, which WHERE will reference.
Internally, most SQL engines actually process the clauses in the order FROM -> WHERE -> SELECT. This is why column aliases (defined in SELECT) work in the GROUP BY, HAVING and ORDER BY clauses, but not in the WHERE clause.

There are no comments on this comment yet.