by hantusk · 4y ago · 0 comments
Agree, SQL can already do what the OP proposes in almost the exact same syntax.
and together with CTEs, intermediate temp tables or views, you can totally avoid the spaghetti and break down the queries in manageable chunks.