Checklist: Before You Create Your First Database
Creating your first database is exciting, and a little preparation makes it much smoother. Work through this checklist before you type CREATE TABLE. Each item has a one-line reason.
Choose your setup
- [ ] Pick one database to learn first. Switching between several at the start mixes up small syntax differences.
- [ ] Consider SQLite for your very first steps. It is a single file with no server to install, so you can focus on SQL itself.
- [ ] Install a friendly tool to look inside. A visual client such as DB Browser for SQLite lets you see tables and rows, which helps the ideas click.
- [ ] Check that you can run a query.
SELECT 1;returning 1 proves everything is connected.
Choose a practice project
- [ ] Pick a topic you care about. Books you have read, recipes, a game collection. Interest keeps you going.
- [ ] Keep it small. Two or three tables are plenty to learn keys, JOINs and CRUD.
- [ ] Write down three questions the data should answer, such as "which books did I finish this year?". They guide your design.
Plan your first tables
- [ ] Sketch tables on paper first. Moving boxes around on paper is quicker than changing tables later.
- [ ] Give every table a primary key. It lets you point at exactly one row.
- [ ] Choose a type for each column. Numbers as numbers and dates as dates prevent strange results.
- [ ] Decide which columns must never be empty. Mark them NOT NULL.
- [ ] Look for repeated information. If the same author name appears on many books, it may deserve its own table.
Protect your work
- [ ] Know where your database lives. For SQLite, note the file path.
- [ ] Make a copy before experiments. Copy the file, or export the data, before trying UPDATE or DELETE.
- [ ] Keep your SQL in a text file. Saving CREATE TABLE and INSERT statements means you can rebuild everything if needed.
- [ ] Never use real personal data while learning. Make up names and emails; it avoids privacy problems.
Get ready to learn
- [ ] Bookmark the official documentation for your database. It is the most accurate reference.
- [ ] Keep a notes file of errors you hit and how you fixed them. You will meet many of them again.
- [ ] Set a small goal for the first session, such as "one table, five rows, one SELECT".
After your first session
- [ ] Run a SELECT that answers one of your three questions. It is a lovely moment.
- [ ] Write down what confused you, and look it up next time.
When you are ready to start, how to create your first SQLite database and table walks through every step, and the vocabulary quiz is a good warm-up.
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.