Lurker News
I 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

Show all comments

Showing thread 24 of 45

dizzystar#
Not online, but SQL Antipatterns is the book that had the largest impact on my thinking:

https://www.amazon.com/SQL-Antipatterns-Programming-Pragmati...
But as you said, you haven't actively learned SQL, so probably need to find some free data sets to work with.
You can probably start with Data is Plural. That will, at least, give you some raw data sets so you can get started on learning how to build up a database from unorganized data first:
https://tinyletter.com/data-is-plural
Edit to add: First and foremost, you have to learn normalization. Without that, you aren't doing any SQL.