Interactive SQL course
Learn SQL by writing real queries.
QueryCraft SQL teaches database thinking, SELECT queries, joins, aggregation, data changes, and performance through short lessons and hands-on exercises against one consistent course schema.
GreenCart query
checked
SELECT c.customer_name, SUM(oi.quantity * oi.unit_price) AS revenue FROM customers c JOIN orders o ON o.customer_id = c.customer_id JOIN order_items oi ON oi.order_id = o.order_id GROUP BY c.customer_name ORDER BY revenue DESC;
Correct. 8 rows returned.
Why QueryCraft SQL
Built for practice, not passive reading
Small lessons
Each module is split into focused lessons with theory, examples, and immediate practice.
Checked SQL exercises
Run real queries and get feedback based on result rows, columns, and SQL behavior.
Course-wide schema
The GreenCart database stays consistent so learners build fluency instead of relearning toy tables.
Exams and progress
Module exams, a final exam, mistakes review, and cloud progress are designed for serious learning.
Course schema
One realistic database across the course
customers
orders
order_items
products
payments
reviews
The full schema includes hubs, neighborhoods, customers, staff, suppliers, categories, products, inventory, promotions, orders, order items, payments, deliveries, reviews, and support tickets.
Ready to write your next SQL query?
Start as a guest or sign in to save progress and Daily Challenge tokens.
Open the learning app