Email or username:

Password:

Forgot your password?
6 comments
Steve Purcell

@b0rk_reruns DuckDB lets you put the "FROM" first, which I immediately enjoyed, even as a long-term SQL person who values standardisation.

seeker

@b0rk_reruns this isn't even the biggest problem with select. It's not selecting rows. Many DB people call it "project".

seeker

@b0rk_reruns having an explainer that shows "explain plan" for a sample query could be a logical follow up. One could argue that it's too complex for your audience. But you have the skill to present complex things in a way people can actually understand.

Stephen Belcher-Saunders

@b0rk_reruns the ORM I use allows composing query concepts in any order technically, but in practice it almost always starts from a "from" base concept (like, DV[:some_table] is "SELECT * FROM some_table", but filtering with WHERE and only some cols could be DB[:some_table].filter(some_col: 'value').select(:col1, :col2)). Might be one of the unconscious reasons I like it, since it maps to this better mental model of building SQL statements

dharris

This is syntax that rdbms clients could support. It’d also help with column name completion if you start with FROM.

Go Up