r/learnprogramming • u/xao_spaces • May 15 '26
Request: resources for Advanced Databases
Does anyone have resources for advanced databases? I took a course in university but it was subpar or the teaching style didn't match my learning style. Basically, we were given SQL problems but never given the answers or any feedback to the homework so it was hard to figure out what I did wrong specifically.
When I took the prereq. course, the way the professor set up the assignments was to give us the problems sets along with the query output. It didn't always mean that we had the correct SQL query, even if the output was identical, but learning that way really helped me think critically and correct my mistake because I could compare my output and adjust my query accordingly.
If anyone has any resources (websites, courses, books) I'd appreciate it, thanks!
2
u/Suspicious_Coat3244 May 15 '26
Honestly that "no feedback on homework" would have drove me nuts too. SQL is a subject where small errors can drastically change your logic, so getting to see the expected output would have really built your intuition.
Some other resources that are actually useful rather than just dumps of theory:
With that said, I'd strongly suggest that while "SQL syntax" is an important part of studying, once you're done with that you need to actually learn about databases themselves. When do databases do weird things? What makes a database fast? Normalization trade-offs? Transactions, locking, isolation, query planning, execution plans. This sort of knowledge is what elevates you from being "someone who can write a query" to someone who actually "knows databases".
Additionally, install Postgres locally and start experimenting with your own queries instead of only using web-based playgrounds. It took me far too long to figure out that experimenting directly in a broken real database taught me a lot faster than web-based exercises did.
2
u/opentabs-dev May 15 '26
if you want the deep stuff that goes beyond syntax, "use the index, luke" (free online, by markus winand) and his book SQL Performance Explained are genuinely the best resources i've ever read on how queries actually execute. for theory side, Database Internals by alex petrov is fantastic. and yeah just install postgres locally and start running EXPLAIN ANALYZE on everything, that teaches you more than any course.
2
u/Whatever801 May 15 '26
I'm a fan of sqlzoo https://www.sqlzoo.net/wiki/SQL_Tutorial
1
u/marrsd May 15 '26
I learnt relational databases from "The Art of SQL", by Faroult. I just looked it up and it's still being published.