Start Here: The Beginner's Hub for Apps and Databases
Welcome. If you are new to databases and not sure where to begin, this hub picks out the pages that most beginners find useful, in a sensible order. Each link has a short note so you know what you will get from it.
1. Understand what a database is
- A Six-Part Beginner Course on What a Database Is. A gentle outline that explains tables, rows and columns, and why apps use databases at all.
- Beginner Follow-Up Questions: What Exactly Is a Database?. Answers to the "but why not just use a spreadsheet?" questions everyone has.
2. Make your first database
- How to Create Your First SQLite Database and Table. SQLite needs no server, so you can start in minutes.
- Practice Unit: Tables, Rows and Columns. Hands-on exercises with answers.
3. Ask questions with SELECT
- SELECT Queries in Five Short Beginner Modules. Build queries one clause at a time.
- Watching a SELECT Query Run, Step by Step. Pictures of what the database does with your query.
4. Link tables together
- Course Outline: Understanding Primary Keys From Scratch. Why every table needs a key.
- INNER JOIN and LEFT JOIN, One Small Step at a Time. Joins with tiny tables you can check by hand.
5. Connect an app safely
- How to Connect a Python Script to SQLite. Your first program that talks to a database.
- How to Use Placeholders in Node.js to Stop SQL Injection. The single most important safety habit.
- How to Keep a Connection String in an Environment Variable. Keep passwords out of your code.
6. Keep going
- Reading Path: From Zero to Your First Database-Backed App. A longer, ordered route through the site.
How long will this take?
| Section | Rough time for most beginners |
|---|---|
| 1 and 2 | An evening |
| 3 | One or two evenings |
| 4 | A few evenings; joins take practice |
| 5 | A weekend for a small project |
Everyone learns at a different speed. Going slowly and understanding each step is better than rushing.
Tips for using this hub
- Type the examples yourself instead of copying and pasting. Your fingers learn too.
- Break things on purpose. Change a query and see what error you get. Error messages become less scary once you have caused a few deliberately.
- Keep a notes file of queries that worked and what they do.
Stuck?
Our page on who to ask when you are stuck learning SQL lists the kinds of people and places that can help. If you think a page on this site is wrong or confusing, tell us through the contact page. Beginner feedback is the most useful feedback we get.
A free learning page for beginners. Practise on a test database, never on real customer data, and check the official documentation for your database version.
This is a static page of sample discussion topics. There is no live forum, membership or user community on this site.