The biggest obstacle between a beginner and their first query is not SQL. It is the setup: pick a database, install it, fight the installer, create a user, find a client, load sample data. Plenty of people burn their entire first study session on that and never write a line of SQL. The fix is simple: skip the install. You can practice SQL online, in your browser, without installing anything, and for the first weeks of learning that is genuinely the better option, not a compromise.
Your first query can be running within a minute of reading this sentence, and it looks like this:
SELECT name, role
FROM agents
WHERE status = 'active';The honest list of browser options
These all run real queries against real tables, free, with no download. They differ in how much structure they give you.
- DB Fiddle: a blank SQL scratchpad in your browser. Pick an engine, define a schema, run queries, share a link. No signup, no lessons; it is a whiteboard, not a teacher. Ideal for testing an idea or reproducing a question from a forum post. db-fiddle.com
- sql-practice.com: free exercises against a hospital database, sorted by difficulty, with hints and answers. No account needed. The closest thing to a problem-set workbook in the browser. sql-practice.com
- SQLBolt: interactive lessons that teach from zero, each ending with exercises you solve in an embedded editor. The best free option if you want concepts explained before you practice them. sqlbolt.com
- SQL Protocol: our game, so weigh accordingly. It is a free browser game with an instant guest mode: click once and you are writing your first query in seconds, no signup. The 15-chapter story campaign teaches SQL inside a spy story, and Interview Mode adds timed drills when you are ready for pressure. Google sign-in exists only if you want progress saved across devices. sqlprotocol.com
A reasonable path: SQLBolt for the concepts, SQL Protocol or sql-practice.com for reps, DB Fiddle when you want to experiment with your own schemas.
Why no-setup practice works
Learning SQL is about volume: the syntax only sticks after you have written a few hundred queries. Every minute spent on installation, configuration, and sample data is a minute not spent on reps. Browser tools remove the whole category of setup failure, and a SELECT behaves the same in a browser sandbox as it does on a production server. The engines behind the sandboxes are not toys, either: many browser tools run SQLite compiled to WebAssembly, and the SQLite project estimates there are over one trillion SQLite databases in active use, with SQLite “likely used more than all other database engines combined”. The skill transfers completely.
When a local database IS worth installing
Eventually you graduate from the sandbox. Install a real database when you hit one of these:
- You want to load and analyze your own data, more than a fiddle comfortably holds.
- You need one specific dialect and its tooling for a job: PostgreSQL with psql, MySQL Workbench, and so on.
- You are learning performance work: indexes, EXPLAIN plans, query tuning on realistic data volumes.
At that point, installing PostgreSQL (the most-used database in the 2025 Stack Overflow Developer Survey, at 55.6% of respondents) or grabbing a single-file SQLite database is a well-earned afternoon. Until then, stay in the browser and spend the time writing queries. If you are not sure what to practice, our SQL interview questions guide is a good source of realistic problems.