Start with SELECT and WHERE
Use the first two lessons to understand table/query contracts and precise filtering. Then practice customer names, an output-column alias, duplicate cities, paid-order filtering, and inclusive amount ranges.
Free String Explorer: try Python and JavaScript string operations
Learn to turn a small table into the exact result a question asks for. These free SQL lessons and exercises cover selecting columns, naming output columns, preserving duplicate rows, and filtering records. They use SQLite and synthetic data in the browser.
No account needed for free previews · Hints, tests, and explained answers
Before you start: No previous SQL experience is required for these introductory previews. You should be comfortable reading a small table and following a written input/output contract. The full SQL course progresses to joins, aggregation, CTEs, windows, and reporting; those later topics are not all part of the free preview.
Imagine a customers table with columns id and city, containing (1, Austin), (2, Dallas), (3, Austin), and (4, Austin). Return the city from rows whose id is at least 2, in id order.
SELECT city
FROM customers
WHERE id >= 2
ORDER BY id;
-- Result: Dallas, then Austin, then AustinSELECT chooses the output column; WHERE chooses rows. ORDER BY makes the required sequence explicit. Without DISTINCT, repeated values remain separate rows. If a city appears twice in the selected rows, removing the duplicate would change the answer. NULL also needs care: use IS NULL or IS NOT NULL rather than equality with NULL.
Read the schema and supplied rows first. Write down the required column names, filters, duplicate behavior, and ordering. Submit one read-only result-producing query. Each test uses a fresh in-memory database, so one run does not modify the next. If a result fails, compare column aliases and repeated rows as well as the displayed values.
Use the first two lessons to understand table/query contracts and precise filtering. Then practice customer names, an output-column alias, duplicate cities, paid-order filtering, and inclusive amount ranges.
The browser runner uses SQLite through sql.js. Basic SELECT and WHERE concepts transfer to other SQL systems, but date functions, types, syntax, and some behaviors vary by database. These exercises follow the stated SQLite contract.
No. The free exercise includes synthetic tables and rows in a fresh in-memory database for every test. No uploads, external database connection, or account is needed to try it.
Yes. Free exercises include hints, reference queries, explanations, and expected-versus-actual result tables. Read whether row order matters: unordered comparison still preserves duplicate rows. Sign in only if you want to save your progress.
Free previews are available without an account. An account lets you save your exercise code and progress. Create an account to save progress. Paid lessons and practice are clearly separated from these free links. Compare Course access, Practice Pack, and Complete Bundle.
Find a starting point, read a worked example, and try matching exercises with hints and solutions. No account is needed for free previews.