Ask HN: What is the best online resource to learn advanced SQL?
448 pointsI too often find myself getting stuck when it comes to more advanced SQL queries. I have never actively learnt SQL and realise that I don't have a great mental model of how it works. I would like to improve this as it is killing my productivity from time to time.
Comments (97) 45 threads
Earlier commentsThis will take you from the theory of indexes to actually seeing how it is used by the SQL engine.
This will go a long way to building the right indexes and SQL tuning in general.
I would suggest learning how to generate the query plans for your SQL engine of choice.
This is key. I cannot count how many times I go to a client that is complaining that their software is slow and ends up that is because they don't have the right indexes
It is the lowest hanging fruit to improve performance.
Even if you don't have the flexibility to change the SQL on a project, you may still have the ability to create/rebuild the indexes to make the query faster.
Sometimes I see job offers that ask for experience with large websites, large databases, large servers, etc, etc, etc (you get the idea).
How do you land those jobs if getting in that kind of subject is impossible alone? You can't simulate that kind of things at your home, so unless your side project grow and you must learnt it the hard way, or you had luck to be at a company where they allowed you to be involved, how do you learn that? Thank you
In particular: https://www.postgresql.org/docs/9.6/static/sql.html
https://www.postgresql.org/docs/9.6/static/server-programmin...
https://www.postgresql.org/docs/9.6/static/sql-commands.html
All comments shown.
Couldn't load more comments. Check your connection and try again.