Learn SQLite by working with a real file

Start with four fictional customers and six orders. Follow each lesson, run the query, and compare your result with the answer on the page.

You need Petti on an Apple silicon Mac running macOS 14 or later. Install and open Petti first. The query lessons are free; importing and changing data require an editing license.

Choose a learning path

  1. New to SQL? Start with your first query, then joins, then a monthly report.
  2. Working with a file from another app? Try JSON inspection and the before-and-after comparison.
  3. Starting with a spreadsheet? Follow the CSV import exercise with its separate sample file.

The database is ordinary SQLite. You can inspect the same file using another SQLite client. Amounts are integer US cents, dates are ISO calendar dates, and every record is fictional. These are small learning examples, not performance benchmarks.

1. Read and understand the data

2. Work with real-world tasks

Updated