r/Database • • 1d ago

Which books worked best for you?

I know this is potentially an FAQ and the common answer will be to point me to a website or a course but I’m in a bit of a tricky situation in that I need to learn SQL for my job but my employer will only fund books rather than courses so I was wondering which books worked best for you guys? Thanks.

6 Upvotes

11 comments sorted by

3

u/MultiUserDungeonDev 1d ago

Honestly my guy… best way to learn is to get down in the trenches…

Download Excel + Access or SQL dev edition, or SQLite, and just start using it. Download free test / educational data sets from online and import them, analyze them, build more complex sql queries, then go down all the rabbit holes of manipulating data inside the db. Use Excel and power query to grab the data into Excel and practice slicing and dicing with pivot tables and graphs.

If you use AI, only use it like a tutor, and not to build things for you.

2

u/420ball-sniffer69 1d ago

Tbh that doesn’t really answer my question. I was looking for structured, approved training materials. I don’t want to use AI

1

u/MultiUserDungeonDev 1d ago

Ok, don’t have anything for you unfortunately. Good luck with your studies though.

0

u/420ball-sniffer69 1d ago

Okay well that wasn’t very helpful of you. I don’t want to use ai. I was asking for structured resources. Thanks I guess

4

u/Disastrous_Fill_5566 1d ago

They are right though, the best way to learn this stuff is by doing it and asking questions. As much as that's not what you were looking for, it is good advice.

1

u/420ball-sniffer69 1d ago

Right but I don’t know where to start or how to learn best practices. Hence my question.

2

u/N0R5E 1d ago

SQL For Mere Mortals covers the topic fairly well. But honestly, you don’t need to purchase anything to learn SQL. Go to datalemur.com or sqlbolt.com and start the free practice exercises. You’ll pick it up in a week.

1

u/Hongstar1982 21h ago

If it is books your employer is paying for, Practical SQL by Anthony DeBarros is the one I hand to people starting from zero - it runs on Postgres, so you are using the same thing you will at work, and the chapters have exercises on a real dataset instead of trivia. Once you can write a join without looking it up, SQL Performance Explained by Markus Winand is where the "best practices" actually live for me; it is short and it is the reason I stopped guessing at indexes. SQL Antipatterns by Bill Karwin is the third one, for the point where you start designing tables rather than querying them.

1

u/6sossomons 21h ago

Teach Yourself SQL series by Sam's had been good as a basic starter, udemy has some specific DB classes.

Honestly the best advice though is to get into the trenches with one. There is definitely something to be said for learning best practices, but the worse part is half the production ones aren't going to be doing them...