Modern SQL: With – Organize Complex Queries
modern-sql.com
Modern SQL: With – Organize Complex Queries
1–10 of 63 posts
Re: Modern SQL: With – Organize Complex Queries
#2Re: Modern SQL: With – Organize Complex Queries
#3It looks like Postgres can do it [1] with its JSON capabilities, and to be honest its being a little while since I've dug into it, so things might have changed (I'm actually not even sure I'm phrasing the question correctly), but the old way of doing a single select and then looping over it in whatever code is calling the SQL and doing N more selects, one for each row to get the sub-array is horrible.
[1] http://bender.io/2013/09/22/returning-hierarchical-data-in-a...
Re: Modern SQL: With – Organize Complex Queries
#4Re: Modern SQL: With – Organize Complex Queries
#5What I really want from SQL is the ability to do a single select with one or more parts of each returned record being an array (defined by a one-to-many join) and others simple scalars. It looks like Postgres can do it [1] with its JSON capabilities, and to be honest its being a little while since I've dug into it, so things might have changed (I'm actually not even sure I'm phrasing the question correctly), but the…
Re: Modern SQL: With – Organize Complex Queries
#6What I really want from SQL is the ability to do a single select with one or more parts of each returned record being an array (defined by a one-to-many join) and others simple scalars. It looks like Postgres can do it [1] with its JSON capabilities, and to be honest its being a little while since I've dug into it, so things might have changed (I'm actually not even sure I'm phrasing the question correctly), but the…
Re: Modern SQL: With – Organize Complex Queries
#7Wow, what I liked on this website is that you can turn off social plugins, why not more websites do that...
A German IT media website (heise.de) pioniered that approach in 2011: https://web.archive.org/web/20150318081341/http://www.heise.... ; the newer code: https://web.archive.org/web/20150424102213/http://www.heise....
Re: Modern SQL: With – Organize Complex Queries
#8Re: Modern SQL: With – Organize Complex Queries
#9Re: Modern SQL: With – Organize Complex Queries
#10What I really want from SQL is the ability to do a single select with one or more parts of each returned record being an array (defined by a one-to-many join) and others simple scalars. It looks like Postgres can do it [1] with its JSON capabilities, and to be honest its being a little while since I've dug into it, so things might have changed (I'm actually not even sure I'm phrasing the question correctly), but the…