Online SQL Compiler
Practise SQL online with ready sample tables. Run SELECT, JOIN, GROUP BY, INSERT and more instantly — free, no database setup.
Output
Press Run (or Ctrl + Enter) to see the output here.
Your code runs safely inside your own browser — it is never sent to our server. Runs on an SQLite database in your browser. Standard SQL works; a few MySQL-only features differ. The sample tables reset on every run.
How to use the Online SQL Compiler
- Write or paste your SQL code in the editor.
- If your program reads input, type the values in the Input box, one per line.
- Press Run or Ctrl + Enter. The result appears in Output.
Your code is saved in this browser automatically, so it is still here when you come back. Press Reset to get the example back.
Learn step by step
Free tutorials with examples you can run, plus live online training with a trainer.
Free tutorials Online training