r/learnSQL • u/blerd_dreamer15 • 2h ago
Database design
Hey guys.
Gonna be real quick.
I know about databases but I struggle with database design either relational or non relational.
Do you have any resource that I can binge on and like solve this issue once and for all ?
Would appreciate it. Thanks in advance.
2
Upvotes
5
u/nicopassaglia 2h ago •
Bingeing won't fix this one. Design is a skill you get by designing, getting it wrong and seeing why. What worked for me:
For the theory behind it: "Database Design for Mere Mortals" (Hernandez) is the friendliest book, and Stanford's free Databases course by Jennifer Widom covers keys and normal forms properly. For non-relational it flips: you start from the queries you'll run and shape the data around them. "Designing Data-Intensive Applications" explains that part well.
Disclosure: I built getsheetdrill.com, which has lessons where you write the CREATE TABLE and it tests your tables with inserts that should be refused (keys, normalization, constraints). Those lessons are in the paid part; the query lessons are free.
1
u/squadette23 1h ago
Try this and tell me if that is what you need: https://kb.databasedesignbook.com/posts/google-calendar/
"Database design" may mean a number of different things.