The SQL and Databases Guide

By

Learn SQL and databases: database theory, SQL fundamentals like SELECT and joins, plus practical guides to PostgreSQL, SQLite and MySQL.

~~~

Almost every app needs to store data. That usually means using a database, and SQL is how you talk to it.

SQL has been around for decades because it works. Once you learn it, you’ll keep using it throughout your career.

This page organizes my database tutorials into a learning path: theory first, then SQL fundamentals, then the specific databases you’ll actually use.

Where to start

A little theory goes a long way. These posts explain what a database is and how relational databases think:

  1. What is a Database? And a DBMS? defines the terms
  2. Relational Databases explains the model behind SQL
  3. Introduction to the ER Data Model shows how to design your data
  4. Introduction to SQL is where the hands-on part begins
  5. Do you always need a database for your app? is worth reading before you reach for one

SQL fundamentals

The core operations, in the order you’ll learn them:

PostgreSQL

Postgres is my recommendation for most projects. Start here:

SQLite and MySQL

SQLite is perfect for small apps and local development. MySQL is everywhere in existing projects:

Working with databases from code

These topics come up in real projects:

Go deeper

I collected the SQL fundamentals in the free SQL Handbook. It’s a compact reference you can read in an afternoon.

Every database post is on the database tag page.

Tagged: Database · All topics

Want me to talk about your product? You can sponsor this site.

~~~

Related posts about database: