Your personal SQL playground—connect, query, and master databases on your terms.
SQLBook lets you practice SQL against your own MySQL, PostgreSQL, MariaDB, or Oracle instances. No sample databases, no artificial constraints—just real queries on real data.
This tab is your Notes section—use it to document your work, track your learning, or outline your queries before writing them. If you're signed in and own this book, you can edit this content to customize it however you like.
Ready to write SQL? Click the + button to add a query tab. Each tab is an independent SQL editor, so you can work on multiple queries simultaneously without losing your place.
To run a query:
Schema Viewer — Click the ER diagram button (next to Run) to visualize your database structure and table relationships
Export Results — Download your query output as CSV or copy as a formatted Markdown table
SQL Puzzles — Challenge yourself with progressively difficult problems to sharpen your skills
Data Generators — Quickly convert data formats into SQL:
Shareable Books — Share your entire book via URL for collaboration, teaching, or code reviews
SQL Output