Hacker News new | ask | show | jobs
by jimlikeslimes 877 days ago
My mental model was always that the order of keywords mirrored the order the database engine applied them. So WHERE is processed first and SELECT last.
2 comments

It’s not really mirrored (assuming you meant reversed). Here’s a page describing the two orders in relation to each other from a wiki I wrote:

https://github.com/weinberg/SQLToy/wiki/Two-Key-Concepts

Oh wow, the wiki / project looks fantastically interesting. I've bookmarked it for a deeper read in the future.

Yes I did mean reversed.

try EXPLAIN ANALYZE (or just plain EXPLAIN) and see for yourself!