r/SQL • u/420ball-sniffer69 • 23h ago
Discussion 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.
9
Upvotes
5
u/Discordbothost 22h ago
Check which database your job uses first. If it's SQL Server, T-SQL Fundamentals by Itzik Ben-Gan covers joins through transactions, with exercises. Work through those in a practice database alongside the book.
1
u/CanWeTalkEth 21h ago
Mastering Postgres
1
u/MarionberryAlone6004 16h ago
Which typewriter company do you work for? Just read their manual.
1
u/reditandfirgetit 20h ago
The most useful sql book I had was SQL on a nutshell. Had multiple engines and showed what the differences were. Firvexample GETDATE() in sql vs NOW() in postgres
1
u/J2112O 19h ago
SQL Queries For Mere Mortals was a good one for me and helped me learn a lot.
1
u/LateRegular6573 16h ago
Im on o'reilly so you can have a choice of a couple hundred
1
u/No_Addition_992 15h ago
Buy the book for the database you use most at work, not all three at once — Postgres, MariaDB and SQL Server differ enough that one book won't cover them all. Work the exercises in a real database as you read, and focus first on SELECT, JOINs, GROUP BY and aggregates, then window functions.
1
u/LateRegular6573 8h ago
A person interested in coding needs to find their own answers rather having others do the work for them. At least give evidence what you have done for yourself and what were the results.