Use desktop for interactive SQL sandbox

Welcome to SQLBook [>_]

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.


Getting Started

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:

  1. Select your database system from the dropdown (MySQL, PostgreSQL, etc.)
  2. Write your SQL in the editor
  3. Click Run—results appear in the right pane

Tools & Utilities

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:

  • CSV to SQL
  • JSON to SQL

Shareable Books — Share your entire book via URL for collaboration, teaching, or code reviews


Tips for Power Users

  • Keyboard shortcut: Ctrl/Cmd + Enter typically executes queries
  • Organize by project: Create separate books for different databases or learning topics
  • Document as you go: Use the Notes tab to explain your approach—especially useful when sharing books with others

SQL Output

Demo
Public
Demo of SQL Book
jrz1977
PostgreSQL
Created Nov 24, 2025
1Notes Notes
2SQL SQL
1 SQL 1 Notes
Switch to a SQL tab and press Alt+Enter to run queries
Demo Updated 11/24/25, 9:18 PM
Notes SQL
Alt+Enter to run