Readit News logoReadit News
jdunstan commented on SQL language proposal: JOIN FOREIGN   gist.github.com/joelonsql... · Posted by u/JoelJacobson
mi_lk · 4 years ago
tangent question - what're some effective ways to learn how to write SQL?
jdunstan · 4 years ago
w3schools and the online documentation for any database are good places to start (Postgres and SQL Server have pretty good documentation).

There are also easy-to-google SQL Puzzles, if you're looking for something more advanced.

I would also recommend learning about query plans and how to read them, they're invaluable for query optimization.

jdunstan commented on SQL language proposal: JOIN FOREIGN   gist.github.com/joelonsql... · Posted by u/JoelJacobson
hnthrowaway0315 · 4 years ago
What I really need is something like:

SELECT -col1, -col14 FROM table LIMIT 50;

Where the minus sign means I don't want these two columns. I still don't see a way to do it easily (for Vertica and in Datagrip).

jdunstan · 4 years ago
That's very close to SELECT *, which has it's own dangers. I agree that it would be nice for exploration and testing, but probably should not be used in production.

u/jdunstan

KarmaCake day1December 30, 2021View Original