Master SQL by practicing
on real databases.

QueryLab is a minimalist SQL playground designed for learning, experimentation, and mastery. Connect instantly without configuration.

QueryLab · Workspace
1SELECT c.name AS category,
2       SUM(p.amount) AS revenue
3FROM category c
4JOIN film_category fc ON c.category_id = fc.category_id
5JOIN inventory i ON fc.film_id = i.film_id
6JOIN rental r ON i.inventory_id = r.inventory_id
7JOIN payment p ON r.rental_id = p.rental_id
8GROUP BY c.name
9ORDER BY revenue DESC
10LIMIT 3;
Results (12ms)
category revenue
Sports 5314.21
Sci-Fi 4756.98
Animation 4656.30

Precision engineered.

We stripped away the complexity of traditional database clients to give you a pure, uninterrupted coding experience.

Zero Configuration

No connection strings, no Docker containers. The Sakila database is instantly available the moment you open the editor.

Pro-Grade Editor

Powered by CodeMirror. Featuring a fully custom, high-contrast dark theme optimized perfectly for legibility and focus.

Contextual AI Assistant

Sign in to unlock our AI model that deeply understands your schema. It explains joins, generates boilerplate, and helps debug syntax errors instantly.

User: How do I join film and actor?
AI: You need the film_actor mapping table.
SELECT * FROM film f
JOIN film_actor fa ON ...

Start writing SQL.

No credit card. No setup. Just code.

Open Workspace