3 ms·
I have always used RDBMS through an ORM, usually Django's. I understand basic SQL syntax, but nothing beyond that, and I cannot think in SQL if that makes sense
by smnrchrds 8y ago
I have always used RDBMS through an ORM, usually Django's. I understand basic SQL syntax, but nothing beyond that, and I cannot think in SQL if that makes sense. Is there a good book or course for someone like me to dive into SQL, preferably Postgres?
- sammorrowdrums 8y agoThis course is a wonderful start https://lagunita.stanford.edu/courses/DB/2014/SelfPaced/about https://lagunita.stanford.edu/courses/DB/2014/SelfPaced/abou... After this I would have a look at the postgres documentation. There's so many great examples between there and stack overflow.
- smnrchrds 8y agoThis brings back memories. I remember going through the course many years ago, but I got busy with other projects and quit about 25% through. I'm glad it is still out there and still considered a good source.
- sammorrowdrums 8y agoYeah if you've gone through a good chunk maybe complete it. I really hate knowing how easy it is to do some queries and struggling to use the Django ORM to achieve what I could write in minutes - but for maintainability I hate dropping down to SQL in that context. For a fun advanced tutorial, have a go at pivot tables with crosstab using the docs. I've used it for analytics queries to chart categories as headings, with complex aggregations etc. https://www.postgresql.org/docs/9.1/tablefunc.html https://www.postgresql.org/docs/9.1/tablefunc.html Window functions are another classic https://www.postgresql.org/docs/9.1/tutorial-window.html https://www.postgresql.org/docs/9.1/tutorial-window.html In general working with SQL and gradually solving the problems you have learning as you go is excellent. If you want faster than that there probably are courses but I really do rate their docs. Postgres is great.
- paddy_m 8y agoPhillip Greenspun occasionally (every couple of years) teaches a 3 day deep dive on SQL at MIT. It's free and open to everyone. I have gone to TA the class twice and I learned a bunch walking students through the exercises. Highly recommended.
- em500 8y agoThis one: https://blog.jooq.org/2016/03/17/10-easy-steps-to-a-complete-understanding-of-sql/ https://blog.jooq.org/2016/03/17/10-easy-steps-to-a-complete...
- cagmz 8y agoI had the same issue and can highly recommend this course: https://classroom.udacity.com/courses/ud198 https://classroom.udacity.com/courses/ud198 It includes short videos, quizzes, articles, and exercises.