Databases for Beginners
Welcome
Almost everything you do online — ordering food, booking a seat, logging in — ends in a database, and almost nobody outside engineering can say what one actually is. This course fixes that properly. It teaches what a database is and why spreadsheets stop being enough, how tables model the real world, and how to read and write real SQL — actual queries, shown on the page, with nothing to install. Then the ideas that make databases trustworthy and fast: design, constraints, transactions, indexes. By the end you can read a real query, follow any schema, and hold your own in a "Postgres or Mongo?" conversation — with reasons.
What You Will Learn
You have probably worked from a shared spreadsheet. Two people edit it at once and one change vanishes, an emailed copy disagrees with yours, and a typo sits in a cell as if it were a fact. More care does not fix it; a database does, and this course builds one.
When you finish, you will be able to:
- Lay out a cinema's data as tables, give each row a label no other row shares, and link each booking to its customer and its screening.
- Ask a database questions in SQL, its query language: filter and sort the rows, count and total them by group, and combine four tables into one readable answer.
- Add, change and delete rows without the accident that rewrites all 212 rows instead of one, and import an old spreadsheet in one command.
- Design tables that store each fact in one place, with rules that refuse bad data, down to the one line that stops a seat being sold twice.
- Bundle changes so they all happen or none do, test your backups, and add an index, a sorted lookup, that cuts a four-second page to milliseconds.
- See how a website sends SQL to its database, stop the attack that slips commands into a search box, and limit each account to what its job needs.
- Weigh the other kinds of database, called NoSQL, by what each one gives up, and choose one by asking four questions.
You leave understanding how a database keeps shared data correct and fast, and what each part of a query does. You know the words people who work with databases use, with every term drilled in the flashcards. You know where databases meet the work around them: the apps that send them SQL, the cloud services that run them, and the warehouses that copy their data for analysts. Pass every quiz and know every flashcard, and you earn a certificate with a public link.
About This Course
Databases carry a strange reputation: everyone agrees they matter, and most explanations either drown you in theory or hand you a wall of syntax to memorize. Meanwhile the actual subject is concrete and surprisingly friendly — a database is a tool for keeping shared data structured and trustworthy, and SQL, the language for talking to it, reads closer to English than any other thing in computing. This course teaches both, honestly and from zero.
To keep it concrete, the whole book follows one small business. Marquee is a two-screen neighborhood cinema run by Lora, who starts the course managing films, showtimes, and bookings in a spreadsheet — and outgrows it by the end of Chapter 1. Chapter by chapter, the Marquee's data becomes a real database: tables in Chapter 2, questions and answers in Chapters 3 and 4, safe changes in Chapter 5, honest design in Chapter 6, bulletproof seat booking in Chapter 7, speed in Chapter 8, and a live website in Chapter 9. Every idea in the book lands on data you already know.
This is a hands-in-the-code course with nothing to install. Real SQL appears on almost every page — actual queries against the Marquee's tables — and every query is also explained in plain words, so you can read the book on a phone on a train and lose nothing. If you want to type along, any free online SQL playground works; the course never depends on it.
Who This Is For
Anyone who works next to data and wants to actually understand it: career-switchers heading toward engineering or analytics, students who want the ideas before the jargon, managers and product people who keep hearing "we'll need to change the schema" in meetings, and analysts tired of asking someone else to pull the numbers. It assumes no engineering background at all — only everyday computer literacy. If you administer databases for a living, this course is below you; if the word "database" has always been a black box, it was built for exactly you.
What You Should Already Know
- How to use a computer, a browser, files, and folders as an everyday user — nothing more technical than that
- No programming and no command line — every piece of SQL is introduced from zero and read aloud in plain words
- No prior database exposure — every term is defined the first time it appears
- Having seen a spreadsheet helps, because Chapter 1 is about where spreadsheets break
How the Course Is Built
The eleven chapters build in a deliberate order. First the why — the specific failures that make files and spreadsheets stop being enough. Then the relational model: tables, keys, and how facts point at each other. Two chapters teach reading data — SELECT, filters, groups, and the JOINs that reassemble split data into answers — and one teaches changing it without disasters. Then the craft: designing a database that cannot contradict itself, transactions that make changes all-or-nothing, and indexes that make millions of rows answer in milliseconds. Chapter 9 connects it all to real applications — including the one security lesson every beginner should hear early. The last two chapters widen the map: the NoSQL families, told honestly, and a working framework for choosing a database. The final page is an honest list of where to go next.
Every topic has the same gentle shape: a hook from Lora's cinema to start, the idea built step by step, the real SQL shown and then said in words, one everyday comparison to make it stick, the mix-ups people usually run into, why it matters, and a short knowledge check. It is patient, but it keeps moving — you are here to learn, not to be slowed down.
Chapter Map
Disclaimer
This course is an independent educational project created and maintained by Sergey Okinchuk. It is provided for learning and reference purposes only.
No affiliation. This course is not affiliated with, sponsored by, endorsed by, or officially connected to any company, product, or organization mentioned. All opinions, interpretations, and recommendations expressed are those of the author. Marquee and all characters in this course are fictional; any resemblance to real companies or persons is coincidental.
Trademarks. Product and company names referenced are the property of their respective owners. Use of these names is for identification and educational purposes only and does not imply any endorsement.
Educational simplifications. This material teaches durable concepts for understanding, not operational instructions. Explanations are deliberately simplified for learning; where a simplification could mislead, the text flags it. This course is not professional advice, and is not a substitute for qualified expertise in any decision involving database systems.
Accuracy and currency. Databases evolve — engines, versions, and practices drift over time. Facts in this course reflect the author's understanding at the time of writing and may not be current. The course deliberately teaches the durable relational model and standard SQL rather than product specifics; always consult authoritative sources for the current state of any engine.
No warranty. This material is provided "as is" without warranty of any kind. The author accepts no liability for any loss or damage arising from reliance on the content.