We stumbled across much the same thing building out a query layer of composable join clauses. In previous efforts at something similar, I've used CTEs, but found the ergonomics worse because the query layer had to differentiate between cte clauses and regular ones.
gregw2•1m ago
You raise a good point.
Skimming the original article, I didn't really understand why the author didn't discuss "WITH" CTEs (common table expressions, see https://modern-sql.com/feature/with ) as alternative composition mechanisms. Or even SQL views. But your comment makes sense to me.
jbmsf•27m ago
gregw2•1m ago
Skimming the original article, I didn't really understand why the author didn't discuss "WITH" CTEs (common table expressions, see https://modern-sql.com/feature/with ) as alternative composition mechanisms. Or even SQL views. But your comment makes sense to me.