SQL needs to have `select` as the _last_ part, not the first. LINQ has had this for 2 decades by now: "from table_a as a, table_b as b where ... select a.blah, b.duh".
Some do. It would also be nice to reference by ordinal number similar to order by. Very handy for quick and dirty queries. I can see the issue though that people start to lean on it too much.
Let me reference fields as I create them:
SQL needs to have `select` as the _last_ part, not the first. LINQ has had this for 2 decades by now: "from table_a as a, table_b as b where ... select a.blah, b.duh".
This will be great! One of the things ClickHouse has had since 2016.
BigQuery has that and I've been loving using it since they introduced it
duckdb has it
https://duckdb.org/docs/stable/sql/query_syntax/groupby
Snowflake has that, once you start using it, it's painful to go back.
SELECT * EXCEPT(col_name) next please.
Also just let me reference the damn alias in a group by, FUCK
At least in PostgreSQL, both by alias and ordinal are possible:
I think it should be not only in GROUP BY, but in every context, e.g., inside expressions in SELECT, WHERE, etc.
PostgreSQL and DuckDB support this, which makes MSSQL feel like a dinosaur in context.
Some do. It would also be nice to reference by ordinal number similar to order by. Very handy for quick and dirty queries. I can see the issue though that people start to lean on it too much.
Not directly related, but I saw this project recently of a data language by google which is quite cool https://www.malloydata.dev/
would be nice